I am using onfocusout as an html attribute and some javascript code inside it. Nevertheless, the code works fine in Chrome and browsers powered by webkit engines but it doesn’t work in Firefox, I haven’t tested other browsers yet.
Is there any alternative for ‘onfocusout’ attribute which is supported at least by firefox and chrome?
Not sure what elements you are targeting but
blurmay work for you.If that doesn’t work for you then you may want to include a framework like
jQuerywhich will help you with such cross browser issues.http://api.jquery.com/focusout/