1// In JavaScript, using the addEventListener() method
2// NOTE: The addEventListener() method is not supported in IE 8 and earlier versions
3object.addEventListener("focusout", myScript)
4
5// In JavaScript (may not work as expected in Chrome, Safari and Opera 15+)
6object.onfocusout = function(){myScript};
7
8