A while ago I was given this syntax for repeated onClick popups to come to the front of the screen; <body onLoad="this.focus();"> Today I find it does not work in FireFox. What's going on please? ---dE|_---
"dE|_" writes: > A while ago I was given this syntax for repeated onClick popups to come to > the front of the screen; > > <body onLoad="this.focus();"> > > Today I find it does not work in FireFox. What's going on please? You should use window.focus() - there is no document.focus() in the Gecko DOM. Note that firefox allows you to disable raising and lowering windows in the enable javascript -> advanced... tab, and sensible users have that option checked. Joost.
"Joost Diepenmaat" wrote in message >> A while ago I was given this syntax for repeated onClick popups to come >> to >> the front of the screen; >> >> <body onLoad="this.focus();"> >> >> Today I find it does not work in FireFox. What's going on please? > > You should use window.focus() - there is no document.focus() in the > Gecko DOM. Thanks > Note that firefox allows you to disable raising and lowering windows in > the enable javascript -> advanced... tab, and sensible users have that > option checked. It's not a big issue here but that is noted, along with everything else that can be disabled from JavaScript as a whole, to a lack of speakers, to a blind member of public. ---dE|_---