⬅︎ Back to Button tag in bloody Internet Explorer
The VALUE should always be the value submitted with the form. But IE submits the button text and ignores VALUE. So once again IE has it wrong.
Exactly. Perhaps it's not IE's fault but the tag's fault. Either way, it can't be used.
button is not a form tag that's why submitted value is inconsistant. If you need to have a form (submitting values), you should be using input type=button.
Nothing in the HTML4/5 standard says elements that are not form elements can behave just how the browser wants.
there is no such thing as <button type="submit"> the thing you're looking for is <input type="submit">
actually it's just <button>, type="reset" is an option but type="submit" is a <button> elements default.
Comment
The VALUE should always be the value submitted with the form. But IE submits the button text and ignores VALUE. So once again IE has it wrong.
Parent comment
Exactly. Perhaps it's not IE's fault but the
Replies
button is not a form tag that's why submitted value is inconsistant. If you need to have a form (submitting values), you should be using input type=button.
Nothing in the HTML4/5 standard says elements that are not form elements can behave just how the browser wants.
there is no such thing as <button type="submit"> the thing you're looking for is <input type="submit">
actually it's just <button>, type="reset" is an option but type="submit" is a <button> elements default.