This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Opening a child window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Opening a child window" Watch "Opening a child window" New topic

Opening a child window

Venus Mol

Joined: Mar 15, 2006
Posts: 1

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
<script language="JavaScript">

function popup(){

alert("helloooo");"'+'hello.html",'WebForm1','width=475,height=400,left= 376,top= 232');


<body onUnload="popup();">


plz give me a solution
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Can not happen. With pop up blockers these days it is not possible to get around it.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Opening a child window
It's not a secret anymore!