Should not the following cause "AddNew=AddNew" to be added to the query string, not "AddNew=Add"? Mozilla and Opera get it right...
Code:<button type="submit" style="margin-right: 20px;" name="AddNew" value="AddNew">Add</button>
Printable View
Should not the following cause "AddNew=AddNew" to be added to the query string, not "AddNew=Add"? Mozilla and Opera get it right...
Code:<button type="submit" style="margin-right: 20px;" name="AddNew" value="AddNew">Add</button>
just might be
alsoQuote:
** In Internet Explorer 4.0, submitting a form would only submit the 'innerText' content of the BUTTON (the text content of the element.)
** In Internet Explorer 5.0, submitting a form submits the contents of the VALUE attribute of the BUTTON if it is present. If it is not, the 'innerText' content of the BUTTON is submitted instead.
** In Opera 4.0, CSS attributes (%core%) and event handler attributes (%events%) are honored for this element, but none of the other attributes appear to have any effect at all.
Quote:
push buttons: Push buttons have no default behavior. Each push button may have client-side scripts associated with the element's event attributes. When an event occurs (e.g., the user presses the button, releases it, etc.), the associated script is triggered.
Authors should specify the scripting language of a push button script through a default script declaration (with the META element).
???
As it works in Mozilla and Opera, and the W3C seems to confirm my code, I'm convinced IE has a broken implementation.:(