ventana

window.onload = function() { 
    window.onfocus = function() { alert('example'); };
};
Ashamed Aardvark