View Full Version : Pop up window probs

08-23-2004, 07:49 AM
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:

<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')}

<body onLoad="opener()">
<script language="JavaScript">

Please help me!!!
Thank You!

Willy Duitt
08-23-2004, 11:23 AM

What possible need could you have to close the window the user was reading their email in?? And worse, try to not only do it without their permission but also attempt to circumvent the builtin security policies which were put into place to circumvent such irresponsible behavior...


Roy Sinclair
08-24-2004, 04:29 PM
"Unsubscribe"? Sounds like a spammer (it may not be but it sure sounds like one). And bypassing browser security is definitely on the spammer list of things to do to the end user. It may be an innocent question from a legitimate website but I wouldn't want to help without being sure it's legit.

08-24-2004, 04:33 PM

08-24-2004, 04:47 PM
Side Note:
Whether or not spamming is illegal is outlined by the law of the country you live in. No comments on this please.

I wouldn't suggest doing any of things you desire in your post. If you want to enable people to unsubscribe to your mailing list/whatever then offer them an e-mail address they can send an e-mail to to achieve this.

Willy Duitt
08-24-2004, 05:21 PM
Only a fool would click on those unsubscribe me links contained in an email....
Particularly an unsolicitated email....

.....Willy :p

08-24-2004, 05:26 PM
It's a better method than his :o

Willy Duitt
08-24-2004, 05:35 PM
Your suggestion was a good one for legitimate needs.... such as when someone subscribed to a news letter and the unsubscribe me link is contained within the news letter....

But unsolicitated spam which contains an unsubscibe me from your pesky spam is nothing short of baiting the unwary to confirm their email address so that it may be sold to other spammers offering another unsubscribe me link.... :eek:


08-24-2004, 08:42 PM
Assuming he's a spammer of course? ;O)

Roy Sinclair
08-24-2004, 09:31 PM
Right, while I raise the possiblity that this is related to spam I would also like to leave open the possibility that it isn't. If maskme isn't a spammer and hasn't been scared off by the thread...

OTOH, clicking on any link offered by a spammer is not something that should ever be done much less following any directions they give you. After all, the mere fact they spammed you shows how little consideration they have for the norms of politeness.