Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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
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.

I agree. Here's the link:
subject: Opening a child window
It's not a secret anymore!