打开一个电子邮件程序,主题和正文预填不正常

时间:2013-07-23 07:59:48

标签: javascript lotus-notes

我有以下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;
}

但我得到了这个:

enter image description here

1 个答案:

答案 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.";
}