dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Pop-up link redirect to orignal window

  1. #1
    Join Date
    Oct 2003
    Posts
    2

    Pop-up link redirect to orignal window

    I am trying to create a simple pop-up window to remind people of an upcoming event. Included in the window is a link to the events page, however I want that link to open in the original index page that calls for the pop-up, not the pop-up window which is not resizeable, w/o toolbars, etc.

    I'm sure there are solutions, but darned if I can find them on the site.

    Thanks!

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    This post by Charles might help you: http://forums.webdeveloper.com/showt...8673#post99023

  3. #3
    Join Date
    Oct 2003
    Posts
    2
    Thanks for your fast reply!

    I am still having a small problem. Though both the original pop-up script in the parent page, and the redirect script in the pop-up page work while testing on my computer, the parent page generates error code in the <head> when publishing to the web. Worse off, this only happens to certain computers, though all are running IE 6.

    What follows is my original parent code, and the resulting error code.

    ORIGINAL SCRIPT:

    <SCRIPT LANGUAGE="JavaScript">

    <!-- Begin
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=330,height=330,left = 250,top = 150');");
    }
    // End -->
    </script>

    <BODY onLoad="javascriptopUp('eggers.htm')">

    ERROR SCRIPT FROM PUBLISHED PAGE, PRECEDES ORIG SCRIPT:

    <script language="JavaScript">
    <!--

    function SymError()
    {
    return true;
    }

    window.onerror = SymError;

    var SymRealWinOpen = window.open;

    function SymWinOpen(url, name, attributes)
    {
    return (new Object());
    }

    window.open = SymWinOpen;

    //-->
    </script>


    <BODY onLoad="var SymTmpWinOpen = window.open; window.open = SymWinOpen; javascriptopUp('eggers.htm'); window.open = SymTmpWinOpen;">

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles