A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Parent & Child window

  1. #1
    FK Board Loser
    Join Date
    Jul 2000
    Posts
    252
    I want to open a child window and close the parent window onLoad, any ideas?

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Posts
    1,317
    in da parent:
    <script>
    function newWin(url,name,features){
    var newWin = window.open(url,name,features);
    newWin.opener.name = "opener";
    }
    </script>

    in da child:
    <script>
    function closeParent(){
    window.opener.close();
    }
    </script>
    <body onLoad="closeParent()">

    this will close the parent but only after the dialog about closing the parent window that you cannot get rid of.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center