I have a form that will be submitted by javascript code triggered in "onsubmit" of the tag. Works fine on all browsers - but not on IE7/IE8.
What can I do?
<form action="/dosomething.htm" method="GET" onsubmit="submitmyform();return false">
[...]
<input type="submit" value="Go">
</form>
If you want IE to be standards compliant, you'll have to tell it which standard it's supposed to comply with in a declaration.
Without one it's going to be endless frustration to get it to do what you want. With one, most of the frustration goes away because it starts working as every other browser.
It works - check W3Scools example (taken from ) http://www.w3schools.com/js/js_form_validation.asp