Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Popup's again

  1. #1
    Regular Coder
    Join Date
    Oct 2002
    Posts
    144
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Unhappy Popup's again

    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.

  • #2
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Any window not created by you will present that message when you try to close it ...
    Omnis mico antequam dominus Spookster!

  • #3
    Regular Coder
    Join Date
    Oct 2002
    Posts
    144
    Thanks
    12
    Thanked 0 Times in 0 Posts
    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

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    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
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •