Disable parent window when popup is open

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

Improve company productivity with a Business Account.Sign Up

ee_autoConnect With a Mentor Commented:
Question PAQ'd and stored in the solution database.
when you popup with DialogModal the underlying window will not be accessible.
erikTsomikSystem Architect, CF programmer Commented:
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.

This technique, however, only works on IE:

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

Open in new window

Yes, the lightbox and the greybox are excellent alternatives to this....
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).
Roman GhermanSenior Software EngineerCommented:

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
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.