Forum Moderators: open
i have a page that loads in a _blank target, but when this page loads i want the page that it came from to close or go to another URL
can anyone please tell me how i can do this?
thanx in advanced.
window.opener.close();
IE security does prompt the user if they what the window closed, or to redirect you could use:
window.opener.location = "h**p://www.google.com";
so your new page would have:
<html>
<script language="JavaScript">
function myFunction(){
//window.opener.close();
//window.opener.location = "http://www.google.com";
}
</script>
<body onLoad="JavaScript:myFunction();">
</body>
</html>
with one of the lines in myFunction uncommented