Sorry for the headline, I know its mess, but I don't know how I can describe this situation.
we have an input field. but not an element of form. here is the code
<input name="search" id="search" onkeypress="SearchBox(this.value);" type="text" value="Search"/> <input name="searchbutton" align="left" class="okbutton" id="searchbutton" onclick="SearchBox(search.value);" type="button"/>
The search function in SearchBox checks the key code and, if it is 13 (character input), sends a search request. this code works in IE8 / 9, but there is an interesting behavior in IE10.
Above average page code. and we have a button element at the top of the page for LOGIN.
in IE10;
i enter the word in the input and press enter:
- SearchBox function work,
- but behave the same as the LOGIN button, and the problem is with it
Note: sorry for the language, English is not my native language. Note 2: SearchBox () has been removed. check jsfiddle link for latest code.
javascript submit internet-explorer-10 forms
MC_delta_T
source share