Disable parent window when popup is open

Is there a way to disable the parent window when a child (popup) window is open?
cuttieveenzAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ee_autoConnect With a Mentor Commented:
Question PAQ'd and stored in the solution database.
0
 
abelCommented:
when you popup with DialogModal the underlying window will not be accessible.
0
 
erikTsomikSystem Architect, CF programmer Commented:
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
abelCommented:
This technique, however, only works on IE:

<body>
    <p>click on the button</p>
    <input type="button" onclick='window.showModalDialog("http://www.google.com");' value="show google modal" />
</body>
</html>

Open in new window

0
 
abelCommented:
Yes, the lightbox and the greybox are excellent alternatives to this....
0
 
abelCommented:
I created a little example and find out along the way that showModalDialog works on both browsers (IE, FF) but its semantics is lightly different on FF then on IE. The example also shows GreyBox, but I didn't manage to get LightBox working timely. http://www.undermyskin.org/external-examples/ee-questions/Q_24408354/ (use View Source to see the source of how I did it, which is basically the same as I showed above).
0
 
Roman GhermanSenior Software EngineerCommented:
Hi,

I have created a jQuery function: showModalDialog which works on all major browsers: IE, Chrome, Safari and Firefox.

You can see the entire article on my blog: http://extremedev.blogspot.com/2011/03/windowshowmodaldialog-cross-browser-new.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.