PDA

View Full Version : body onFocus=functionname, not working on IE



heiseman
25 Oct 2009, 07:17 PM
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.

is_numeric
26 Oct 2009, 01:58 AM
<body onFocus="myFunction();">