[Webkit-unassigned] [Bug 11740] Javascript generated mailto: link (on Form submit) does not work in Safari

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 19 17:21:44 PDT 2007


ain at flashbit.net changed:

           What    |Removed                     |Added
                 CC|                            |ain at flashbit.net

------- Comment #1 from ain at flashbit.net  2007-10-19 17:21 PDT -------
What happens is that your form gets posted. You should remove the form tags at
all or set the submit to return false, e.g.

<SCRIPT LANGUAGE="javascript">
var Domain = "digitalmars.c";
var Mailme = "mail"+"to:w" + "gmars7@" + Domain + "om";
var html = "<form onsubmit='return false;'><input type='submit' value='send
email' onclick='javascript:document.location.href=\""+Mailme+"\"'></form>";

Also, you'll not get a valid code out of this with just plain-empty form tags
which is not the case if you leave them out.

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list