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?
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:
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

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.