我有以下javascript函数,应该打开(在我们的案例中为Lotus notes),并附带预先填写的电子邮件。
function emailpage() {
strTitle = document.title;
strTitle = strTitle.replace("&","-");
window.location = "mailto:" + "?subject=I thought this link might interest you." + "&body=" + strTitle + " - " + window.location;
}
但我得到了这个:
答案 0 :(得分:4)
更换身体和主题应该可以帮助你:
function emailpage() {
strTitle = document.title;
strTitle = strTitle.replace("&","-");
window.location = "mailto:?body=" + strTitle + " - " + window.location + "&subject=I thought this link might interest you.";
}