Two Laptop Bag*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Opening a child window" Watch "Opening a child window" New topic
Author

Opening a child window

Venus Mol
Greenhorn

Joined: Mar 15, 2006
Posts: 1
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

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

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Opening a child window
 
Similar Threads
Populating fields on a webpage based on the remote webpage data
Enabling a button
closing all windows spawned from a frame
Windows XP Popup blocking
can't get my child window to close and reload the parent.