Is There Equivalent Of Onbeforedeactivate Event For Firefox Etc.?
this works in IE $('#blah').bind('beforedeactivate', fnBlah); but I can not find equivalent for Firefox and other browsers
Solution 1:
beforedeactivate
is an IE-specific event handler. The closest you can get are the focusout
and blur
events.
Usage in JQuery:
functioneventHandler(){
//...
};
$("element").focusout(eventHandler);
$("element").blur(eventHandler);
Links to JQuery implementations:
Solution 2:
You can use
object.addEventListener ("blur", handler, useCapture);
or
object.attachEvent ("onblur", handler);
found here: http://help.dottoro.com/ljjhfrjd.php
Post a Comment for "Is There Equivalent Of Onbeforedeactivate Event For Firefox Etc.?"