Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Opening a child window

 
Venus Mol
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai

I want to open a child window while click on the close of the parent window. i don't want to close the parent window at that time.plz give me a solution.I have a code. but wheni executed it the child window cannot open..

here is my code
<html>
<head>
<script language="JavaScript">

function popup(){


alert("helloooo");

window.open("'+'hello.html",'WebForm1','width=475,height=400,left= 376,top= 232');
alert("HHHH");
}
</script>

</head>

<body onUnload="popup();">


Heloo

</body>
</html>
plz give me a solution
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can not happen. With pop up blockers these days it is not possible to get around it.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic