Is there equivalent of onbeforedeactivate event for Firefox etc.?
this works in IE
$('#blah').bind('beforedeactivate', fnBl开发者_如何学Pythonah);
but I can not find equivalent for Firefox and other browsers
beforedeactivate
is an IE-specific event handler. The closest you can get are the focusout
and blur
events.
Usage in JQuery:
function eventHandler(){
//...
};
$("element").focusout(eventHandler);
$("element").blur(eventHandler);
Links to JQuery implementations:
- Focusout
- Blur
You can use
object.addEventListener ("blur", handler, useCapture);
or
object.attachEvent ("onblur", handler);
found here: http://help.dottoro.com/ljjhfrjd.php
精彩评论