PDA

View Full Version : function triggered when window becomes active



heiseman
25 Oct 2009, 08:57 AM
Hi, I'm working on a website and am having difficulty figuring out how to have a function triggered when the window becomes active. I am having limited success with:

<body onFocus=myFunction();>

This works fine with Firefox and Safari, but not Internet Explorer. Is there a way to achieve this in all 3 browsers?

Thanks.