Ideally I want to pop an alert box if the textarea has the text href in it.
My javascript is poor but I got it to work with ..
Code:
if (objForm.faultReport.value.length >= 2)
{
var invalid ="href";
var strData = objForm.faultReport.value;
gb_val = strData.indexOf(invalid);
if(gb_val>0)
Leave a comment: