Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Pop up window probs

    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:

    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,directories=no,width=500,height=300')}
    -->
    </script>
    
    </head>
    <body onLoad="opener()">
    <script language="JavaScript">
    window.close();
    </script>
    </body>
    </html>
    Please help me!!!
    Thank You!

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Why?

    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...

    .....Willy

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    "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.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #4
    New Coder
    Join Date
    Mar 2004
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts
    .....

  • #5
    Regular Coder
    Join Date
    Aug 2004
    Location
    Cheshire, England
    Posts
    123
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Side Note:
    Whether or not spamming is illegal is outlined by the law of the country you live in. No comments on this please.

    MaskMe
    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.
    m crilly
    http//www.cheesynimrod.com/

    "There is no such thing as a problem, only an opportunity for a solution."

  • #6
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Only a fool would click on those unsubscribe me links contained in an email....
    Particularly an unsolicitated email....

    .....Willy

  • #7
    Regular Coder
    Join Date
    Aug 2004
    Location
    Cheshire, England
    Posts
    123
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's a better method than his
    m crilly
    http//www.cheesynimrod.com/

    "There is no such thing as a problem, only an opportunity for a solution."

  • #8
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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....

    .....Willy

  • #9
    Regular Coder
    Join Date
    Aug 2004
    Location
    Cheshire, England
    Posts
    123
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Assuming he's a spammer of course? ;O)
    m crilly
    http//www.cheesynimrod.com/

    "There is no such thing as a problem, only an opportunity for a solution."

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Check out the Forum Search. It's the short path to getting great results from this forum.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •