SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Sep 2000
    Posts
    230
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I currently have a popup-window script that works fine.
    Now im trying to create a script that will open a link in the main page from the popup window.
    Any advice.

  2. #2
    JavaScript Guru (Big Ego) Arielladog's Avatar
    Join Date
    Jul 1999
    Location
    SC, USA
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey meztec,

    To control anything from a pop-up window to the main window, you use window.opener. SO, to make a link open there, use:

    <a href="javascript:void(0)" onclick="window.opener.location='someOtherPage.html'">

    and change:

    someOtherPage.html

    To the page you want to open in the parent window.

    aDog


Bookmarks

Posting Permissions

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