Problem in form submit through javascript

Posted by Durga Dutt on Stack Overflow See other posts from Stack Overflow or by Durga Dutt
Published on 2010-12-31T05:22:53Z Indexed on 2010/12/31 5:54 UTC
Read the original article Hit count: 266

Filed under:
|
|

I am submitting form via javascript by using 'document.FormName.submit()' . But this is giving me error of 'submit is not a function'. I m using IE8

<script typr="text/javascript">

function submitForm()
{
  document.theForm.submit()
}
</script>
<body>
<form name="theForm"  method="post">
<input type="text" name= "name">
<input type="button" name="submit" value="submit" onclick="submitForm()">
</form>
</body>

Please help me ?

© Stack Overflow or respective owner

Related posts about html

Related posts about form