This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum 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
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 15362
    
    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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Opening a child window
 
Similar Threads
Enabling a button
closing all windows spawned from a frame
can't get my child window to close and reload the parent.
Windows XP Popup blocking
Populating fields on a webpage based on the remote webpage data