SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Nov 2002
    Location
    Maryland
    Posts
    307
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with Email Disclaimer Pop up Window

    Hello,
    The following popup window will pop up once an email address link is clicked.


    Once the user clicks on "I Agree" I want Outlook or any other email client program to pop up with the email address in the "To:" field. Then the pop up window should close after Outlook appears.

    Here is the HTML code that I am using for the "I Agree" and "Cancel" buttons in the popup window.

    Code HTML4Strict:
    <form id="email" action="mailto:todd@attorney.com?subject=Email%20Attorney" method="post">
    <input type="submit" name="submit" onClick="window.close();" value="I Agree" />
    <input type="button" value="Cancel" onClick="window.close();" />

    The above method works in Firefox, but in Internet Explorer I get a message saying "This form is being submitted through email..." which I don't want. Is there a better way to do this functionality? Any ideas are greatly appreciated.

  2. #2
    SitePoint Addict
    Join Date
    Nov 2002
    Location
    Maryland
    Posts
    307
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone?

  3. #3
    SitePoint Guru Ruben K.'s Avatar
    Join Date
    Jun 2005
    Location
    Alkmaar, The Netherlands
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    <input type="submit" onclick="window.location = 'mailto:your@email.com'" value="I Agree" />

  4. #4
    SitePoint Addict
    Join Date
    Nov 2002
    Location
    Maryland
    Posts
    307
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That did it Ruben! Thanks for your help.


Bookmarks

Posting Permissions

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