how to fix this IE6 input bug

Posted by CunruiLi on Stack Overflow See other posts from Stack Overflow or by CunruiLi
Published on 2010-06-18T03:20:32Z Indexed on 2010/06/18 3:23 UTC
Read the original article Hit count: 238

Filed under:
|
var check = function(){
   return false;
}
var submit = document.createElement("input");
submit.type = "image";
submit.src = "submit1.gif";
submit.onclick = check;
_submitSpan.appendChild(submit);

i created a form and append a input button, but i found it can't work in IE6, when click the button, the form auto submitted. can anybody help me.thank you.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ie6