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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make opener "blurred" as long as pop up is open

Status
Not open for further replies.

chronix

Programmer
Oct 7, 2002
5
SE
Ok this is what I need to do:

From one page you open a pop-up and when this pop up is open you shouldnt be able to go to the opener window.

I've tried <body onBlur=&quot;self.focus()&quot;> in the pop-up but disturbs the form in the pop-up (you can't write in the fields) and it's quite easily to walk around, just click the taskbar and activate the opener window.

So what I need is (I'm guessing) some kind of check in the opener window, that checks if the pop-up have been opened and if it hasn't been closed and if that's true it should focus on the pop-up. I tried someting with windowName.closed but all I get is &quot;windowName is undefined&quot; though the pop-up is called windowName when it's opened. I'm using ie 5.5.

Thankful for any feedback and working examples....
 
use window.showModalDialog, lookup on the Microsoft site. It will not allow the opening window focus until its closed.
 
Thanks showModalDialog was the kind of function i needed, much appreciated
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top