Button Test Page

Input Elements




Button Elements




Input & Button Elements




Ooh, this is one that gets on my nerves.

At least, that is, when it comes to Internet Explorer (pick your version). Firefox and Opera (probably Safari, too) all seem to know how to handle these suckers brilliantly. But IE flops on its face (especially IE 6 & below).

Go ahead, test your browser on these forms. The correct behavior is to post only the data for the button that is triggered, and to post the value from the value="" attribute of the <button> element. IE will always post the CONTENT of the button, regardless of the value. That means that developers may as well use the <input> tag, as no extra rendering features are available. Or, give all your buttons different names.

Even worse, IE 6 posts ALL the button values when ANY of the buttons are pressed. So, go get Firefox or Opera. In any case, why can't IE post from the value="" attribute, or, if nothing is there, the content?