I’m trying to create a popup() where user clicks on button, then it triggers window where he does some edit.
While the user is editing in the child window, parent window should not be accessed, it should be blocked.
How exactly should i do this?
This is what i’m doing now.
function Popupwindow()
{
name = “Select Requestor”;
url = “selectLocation.html”;
options = “height=330, width=210, location=no, scrollbars=yes,menubars=yes,toolbars=yes,resizable=yes,left=0”;
window.open(url,name,options);
}
So now i’m able to close parent window and even edit parent elements without closing child window.
don’t use “real” popups, use javascript to “emulate” them in teh same window. take a look at jquerys dialog, where you can also set the modal-mode (example and example) – i think this is what you want.
there are a lot of standalone-js examples out thre if you’re not using jquery and a lot of js-frameworks include things like this – just search for “modal dialog”.