...

View Full Version : Popup's again



Dingbat
01-04-2004, 12:59 PM
Hy Guys,

The dreaded popup's again. The two pbit od code be low do work. When the first page is loaded it will produce a popup, BUT, it also produces the popup to say that something is trying to close the parent window.

First Page:

<SCRIPT LANGUAGE="JavaScript"><!--
myHandle = window.open('mypage.htm','main','resizable=no,width=400,height=400');
if (!myHandle.opener)
myHandle.opener = self;
//--></SCRIPT>

Second Page:

<SCRIPT LANGUAGE="JavaScript"><!--
window.opener.close()
//--></SCRIPT>

<a href="javascript:window.close()">Close</a>

My question is: Is there any way that the yes button on the parent popup must be clicked to dismiss the window before any other pages can be loaded into the popup window????????

Regards,

The Dingbat. :confused: :)

Mhtml
01-04-2004, 01:04 PM
Any window not created by you will present that message when you try to close it ...

Dingbat
01-04-2004, 01:22 PM
Thanks MHTML I appreciate that. What I am asking, is there any way to force the user to click on yes before going into the popup?

Dingbat

glenngv
01-06-2004, 11:07 AM
There's a hack for it but you can't rely on it in the future. And it is advisable to only use it in a controlled environment like the intranet. It's a no-no in the internet.

http://aspalliance.com/peterbrunone/impossible.asp



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum