Click to See Complete Forum and Search --> : Open a new window and remain inaccessible until it closes


karayan
05-29-2003, 08:39 PM
Friends: The script in one window, say Win1, needs to open a new window, Win2, in such a way that Win1 remains inaccessible (the user cannot click any buttons on it, or make things happen), until Win2 is closed. Window.open() seems to generate an independent window, and even dependent=yes allows the parent window to be accessible.

So how do I do that?

George

____________

I write in Javascript -- so I must be a Javascribe.

Jona
05-29-2003, 08:50 PM
You could set it up to always set focus to the new window every time the old window is focused:


<script type="text/javascript">
var Win2;
function open_Win(){
Win2 = window.open("file.html","file");
}
function blurMe(){
if(Win2.open){Win2.focus();}
else{window.focus();}
}
</script></head>
<body onFocus="blurMe();">