-
I want to open a child window and close the parent window onLoad, any ideas?
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|