I\'m getting some strange happenings on google chrome. With the following code I\'m getting an infinite number of alerts.
<
I think, it's because after you close the dialog (alert box), the focus returns on the textbox, therefore, the function will fire again.