Quote:
Originally posted by sdpeixoto
Body , perfect!!!
But, in link no functional.
The code close the window, press the link.
<a onClick="window.close()" onUnload="window.opener.focus()">
I want openning the page father, after close the page children.
|
I'm a little lost. I'm not sure what you mean by this. The "onUnload" event handler is only used in the BODY tag. It cannot be used in an A tag. To make your A tag close the window and focus the parent, it'd look like this:
Code:
<html>
<head>
<title>This is the child window</title>
</head>
<body onUnload="window.opener.focus();">
<a href="javascript:window.close();">Close Window</a>
</body>
</html>
That would close the child window and focus the parent window.