www.webdeveloper.com
Results 1 to 2 of 2

Thread: RE: How to close popup and open new page in main browser window????

  1. #1
    Join Date
    Nov 2003
    Location
    Slovakia
    Posts
    21

    Unhappy RE: How to close popup and open new page in main browser window????

    Hi,

    I wonder how can I close a popup window ( by clicking on a button ) and open URL in main browser window that is already opened BEHIND the popup ( I hoipe you get me here... )???

    Thanks,

    Robert

  2. #2
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    In popup

    PHP Code:
    <script>
    function 
    openNew(){
    window.opener.location.href 'newpage.html';
    window.self.close();
    }
    </script> 

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