JS popup troubles

Out of context: Reply #1

  • Started
  • Last post
  • 12 Responses
  • TResudek0

    Easiest way to do it:

    In the page you want the pop-up to come from (in your example that'd be the gallery page), put this in the tag,

    onLoad="launch();"

    Then in the use this:

    function launch() {
    winURL = "yourURL";
    winName = "PopWin";
    winWidth = 320;
    winHeight = 440;
    winOffX = (screen.width - winWidth - 22)/2;
    winOffY = (screen.height - winHeight)/2 - 50;
    winSpecs = "width=" + winWidth + ",height=" + winHeight + ",toolbar=0,menubar=0,scrollbars... + winOffX + ",top=" + winOffY

    PopWin = window.open(winURL,winName,winSp...
    }

    That'll make it pop-up in the middle of the screen. Just change the URL and the size and you're golden.

    TR

View thread