我有以下html表单...
<form id="mform" method="get" enctype="text/plain">
<input name="firstname" type="text" id="firstname">
<input type="submit" class="submit-sponsor-btn" name="submit" value="Submit" onclick="javascript:doMailto(); return false;" id="submit">
</form>
我的javascript看起来像这样......
var msubject = "Become an sponsor to start your connection to future talent";
var mfirstname = $('#firstname').val();
var mbody = "<h1>Sponsor Information Below:</h1><p>Firstname:"+mfirstname + "</p>";
var sMailto = "mailto:memail@something.com?subject="+ msubject + "&body="+ mbody;
function doMailto() {
window.open(sMailto);
}
我需要对这段代码做什么,才能在电子邮件中呈现 HTML 标记?因为到目前为止,它只是将元素标签与内容一起显示。
感谢您的任何建议!