duniyadnd
05-08-2003, 01:15 AM
I got the following code:
var pattern = "/java/i";
if (pattern.test("JavaScript"))
document.write("yup");
else
document.write("nope");
But I keep getting this error with this code:
Object doesn't support this property or method.
Any suggestions of what's going wrong?
Duniyadnd
var pattern = "/java/i";
if (pattern.test("JavaScript"))
document.write("yup");
else
document.write("nope");
But I keep getting this error with this code:
Object doesn't support this property or method.
Any suggestions of what's going wrong?
Duniyadnd