web hosting and development forums
Web Design and Development Forums Archive


Index - JavaScript forum

submit function error


Post reply

Is there a reason I get an error "document.forms.qform.submit is not a function" when I use: document.forms['qform'].submit();?
AFAIK, it should work fine
<FORM method="post" action="" id="qform" name="qform">
Well, your action is /technicaly/ valid, but some browsers are rather buggy when it comes to action="". I'm guessing you have a form control named submit, which is clobbering the normal submit property of the object.
Ah, that could be the issue




Dubai Forum | Paris Forum | Webmaster Forum | Vegan Forum | Brisbane Forum | 3D Forum | Jobs in Dubai | Jobs in London | London UK Classifieds
Archive script by RedHo.com