maskme
08-23-2004, 06:49 AM
Hi!
My problem is as follows: When a user recieves an email & if the user wants to unsubscribe, he/she clicks a link in the email which is a pop up window. Since it is not advisable to write javascript code in an email, I'm trying to open a normal window & then trying to open up a pop window from the normal window & closing the normal window. But the normal window asks the confirmation msg that "Do you wish to close this window". So how do i without confirmation close the window and open up the pop up window. Below is my code:
<html>
<head>
<title>Unsuscribe</title>
<script language="JavaScript">
<!--
function opener() {
window.open('unsusc.html','Login','toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directo ries=no,width=500,height=300')}
-->
</script>
</head>
<body onLoad="opener()">
<script language="JavaScript">
window.close();
</script>
</body>
</html>
Please help me!!!
Thank You!
My problem is as follows: When a user recieves an email & if the user wants to unsubscribe, he/she clicks a link in the email which is a pop up window. Since it is not advisable to write javascript code in an email, I'm trying to open a normal window & then trying to open up a pop window from the normal window & closing the normal window. But the normal window asks the confirmation msg that "Do you wish to close this window". So how do i without confirmation close the window and open up the pop up window. Below is my code:
<html>
<head>
<title>Unsuscribe</title>
<script language="JavaScript">
<!--
function opener() {
window.open('unsusc.html','Login','toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directo ries=no,width=500,height=300')}
-->
</script>
</head>
<body onLoad="opener()">
<script language="JavaScript">
window.close();
</script>
</body>
</html>
Please help me!!!
Thank You!