I\'m getting some strange happenings on google chrome. With the following code I\'m getting an infinite number of alerts.
<
The problem is that the alert() is stealing focus from the input box, and then restoring it when the dialog is closed. You can fix this by clearing focus from the input box before you show the alert.
alert()
Example: http://jsfiddle.net/XppG9/6/