The default type value of <button> should be submit in IE 6, not "button". Submit is the default value for <button> in
HTML 4.01 spec. 'submit: Creates a submit button. This is the default value.'
Have your tried:
I see, the default action for a <button> is to submit the form! That's nasty.
If you make your onclick functions return false, would that cancel the click, and therefore the submit?
No. There's a way to cancel the default action from script, but unfortunately it's not that simple. Actually, there's two ways: the standard way and the IE way. The standards way you have to call event.preventDefault(), the IE way you have to set event.returnValue
= false. I usually do this:
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.