Skip to content Skip to sidebar Skip to footer

Ie10 - Strange Form Submission Issue

Please see the code snippet below:

Solution 1:

The problem (which is reproducible in IE 11, too) seems to be caused by a problem in event handling in IE: when you click on the submit button, the text input field first loses focus, so its onblur handler is triggered, causing a modal window to appear, and here IE somehow loses the information that the input button had been clicked on.

If you replace alert e.g. by console.log, the problem does not occur. In your real code, you probably have something in the onblur event handler that makes some element or widget get focus, similarly resulting in IE losing track of what it was doing.

Post a Comment for "Ie10 - Strange Form Submission Issue"