Menu
Thanks in advance for help with this…
I want to open a “new” window from a prior page
(I’m using the target _blank in the link), and want
the window to open at a certain size, and close
when the window content is clicked.
The following does not appear to accomplish my goal.
Is my goal possible?
[CODE]<SCRIPT LANGUAGE=”JavaScript”>
<!–
function closeWin() {
window.close();
}
if (window.Event) document.captureEvents(Event.ONCLICK);
document.onclick = closeWin;
function resizeWindow(){
window.resizeTo(800,600)
}
// –>
</SCRIPT>
<body background=”images/somepic.jpg” onLoad=”resizeWindow()”>