View Full Version : form opening popup and graying out page
09-04-2007, 07:37 AM
How can I make a form that on submit (method=post)
it opens up a centered popup the height and width I want and then grays out the current page until the popup is closed?
Grayout effect is only for IE.
On submitting -
1 open popup window using window.open and Make the page gray using grayout() function provided below.
ht = document.getElementsByTagName("html");
ht.style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
2. on poup window, make an ungrayout and onunload functions below.
ht = window.opener.document.getElementsByTagName("html");
ht.style.filter = "";
onunload = ungrayout;
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.