I've a flash animation made for client, which has a link which opens a window so that viewer fill a small HTML form. Now this animation runs fullscreen and I need to bring this form window in front of the animation.
I used focusing in onLoad event of HTML page...
it didn't worked...<body onLoad="self.focus()">
then I tried focusing even a form field..
this also didn't worked....<script language="javascript">
<!--
function BringMeUp() {
self.focus();
document.all.fieldname.focus();
}
//-->
<body onLoad="BringMeUp()">
I even tried using alert() thinking this will steal the focus.
I realized why this was happening, by default Window 98 and later (2000, XP) has a feature wherein user can disable windows stealing the focus, instead applications which requires focus start blinking or flashing in taskbar.
If I disable that everything works as charm, with enabled everything fails.
So the Question is ... ahem..
is there any way, by which I can forcefully steal the focus using Javascript ?