SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
-
Mar 6, 2008, 09:58 #1
- 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.
-
Mar 7, 2008, 09:06 #2
- Join Date
- Nov 2002
- Location
- Maryland
- Posts
- 307
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Anyone?
-
Mar 7, 2008, 09:37 #3
- 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" />
Turnware MVC - A new barebone, fast and flexible PHP5 framework!
Ruben Knol
Turnware MVC Lead Developer
-
Mar 7, 2008, 11:29 #4
- 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