Do not worry. This only happens when alert() called. But I do not understand why clicking the "OK" button in the warning window triggers an event several times.
Try this instead, and it will only fire once, as expected.
$('input').live("focusin",function(objectRef) { //alert("focusin event"); $("#some_div").append('focus!'); })
Same as focus , click and other events.
source share