Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: self.focus()


Message #1 by "suneesh vr" <suneeshvr@h...> on Tue, 12 Nov 2002 09:02:18 +0000
>> Hi
>
>Any one know the script so that user cannot shift between windows using 
>ALT+TAB .The self.focus(),I am using below is not working wndows2K+IE6.0 
>browser & Windows 98+IE6 .It is working in windowsNT+IE6.0.Is there any 
>alternative ? Thanks in advance
>
>Suneesh
>
><frameset framespacing="1" frameborder="no" rows="50,*,100" 
onBlur="self.focus()" >

I had the same problem. It is nessecary to focus() on an element, that can 
gain the focus. In my case <body onload="this.focus()" onblur="window.focus
();"> worked perfectly. The user still has the ability to use a different 
application, but when he clicks on any IE-window, the click is ignored and 
the "semi-modal"-window stays on top. I tested this on WinNT4 and W2K(sp2) 
with IE5 and IE5.5(sp2)


  Return to Index