Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retain Focus

Status
Not open for further replies.

hedidit

Technical User
Jul 21, 2005
142
GB
Hi,

I've got a popup window that users click a link to open... thing is that the window often loses focus and disappears behind whatever else people have open. They then call me saying the window won't open when it's actually already open but behind their other apps / windows etc.

Is there anyway I can prevent this from happening?

Cheers
 
i believe you can use onblur="self.focus();"

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Hi 1DMF,

I tried putting onblur="self.focus();" in the body of my popup page but it hasn't worked, any other ideas?

Cheers
 
how about using a settimeout

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top