Quote:
Originally Posted by mihirc
And after using ur suggested correction,
I came across this error...
document.getElementById("submit") has no properties
Sorry For Putting you through all this trouble...
mihir. 
|
Ah ha!
I think that means it's failing to find the element with that ID. Not sure why this is happening, but at least you can add an object detect to avoid the error:
- Code: Select all
var x = document.getElementById("submit")
if (x) {
x.onclick=function(){mailIt(this.form); document.mailform.captchastring.value=(''); return checkForm();}
}
This may not actually make it work, but at least it will stop the error message (for pages that lack this element).