Why the hell can't IE be standards compliant? The following site has a button on it that actions an email: http://clearwatersdayspamd.com/ For some reason clicking on this in IE does not work. I have tested in FireFox, Safari, Mozilla, Netscape, and on and one.. They all work. I am using code that was provided by the helpful "J.D." in the following thread: http://forums.digitalpoint.com/showthread.php?t=10188 Here is my code: <!-- Insert Customer Email Button Code --> <a href="mailto:info@clearwatersdayspamd.com?subject=Clear Water Web Site Inquiry&body=Please begin your message below:"><input type="submit" name="Submit" value="Click Here to Email Us"> </a> Code (markup): <!-- End Insert Customer Email Button Code --> What the heck is IE's problem? Any ideas?
As far as I know you don't need the submit stuff. the & should be & and I would loose the : at the end <a href="">Click Here to Email Us</a> should work on all Expat
Shannon is right - you have to use either a form or a link (in case of a link, you need to create a button yourself - e.g. with a div or as an image). If you want a standard button, the form is the way to go. You can also try <button> - there are some differences in how it looks and behaves in various browsers, though (especially, in Opera). Also, IE doesn't work properly if you have two submit <button>'s. J.D.
Yeah, I think I will just create an image. IE is retarded as usual and just will not follow standards IMHO. I could be wrong, but every other browser I have tested works just fine. BTW, I tried to use the FORM first, but it would not input the subject/body variables in the proper places. Thanx for the help again!
I tried it both ways. It still does not work. BTW, it is Dreamweaver that adds the "&", not me. Either way with or without it, I still have issues with IE.
Ok, it seems to work fine now with the "Click Here To Email Us" button as an image. Thanx again for all the assistance.
I double-checked with the HTML spec and it is perfectly valid to have <input>'s inside <a>'s. Form should work in all browsers. IE will warn the user, though, that a form is being submitted as an email, revealing their email address, which is Ok in your case because the button says all about it. J.D.
Let me clarify. The form worked. The trouble was some mailers garbled up the subject/body text. It did not look pretty.