Controling parent page from popup window

Discussion in 'JavaScript' started by dizyn, Dec 10, 2009.

  1. #1
    Hi

    I wanted to control parent page form popup.

    For example, I have a page: http://www.cmela.com/zz.php

    When i open a popup by clicking "Click Here to open popup page" and then on popup window, i wanted it to transfer parent page from making a click on a pop up window.

    Example is at:
    http://www.cmela.com/zz.php

    open pop up window, and then by clicking on a link on a pop up window i wanted my parent page to go to www.msn.com

    any help?

    Thanks
     
    dizyn, Dec 10, 2009 IP
  2. dizyn

    dizyn Active Member

    Messages:
    251
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Solved:

    Solution is:
    window.opener.document.location = 'http://www.msn.com';
     
    dizyn, Dec 10, 2009 IP
  3. dizyn

    dizyn Active Member

    Messages:
    251
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    After transferring the parent, now I wanted to close the popup window ..
     
    dizyn, Dec 10, 2009 IP