开发者

javascript 'mailto' command

What is used to bold the text in a 'mailto' javascript? After some research i found that %0A is used to insert a new line.

This is my javascript:

location.href="mailto:" +
   "?subject=" + "Sub:{!Trigger_Event__c.Title__c}" + 
   "&body="+ "Title:{!Trigger_Event__c.Title__c}"+"%0AOrganization:" + "{!Trigger_Event__c.Account__c}";

I need to bold the 'Headline' in the scrip开发者_开发技巧t.

Kindly provide your inputs..

Thanks in advance.


I assume that you want to make the "Title" text in the message body bold. Something like this: ..."&body="+ "Title:<BOLD>{!Trigger_Event__c.Title__c}</BOLD>"+"%0A... Is that what you mean?

This is not possible. The mailto protocol is very limited. The official definition is in RFC 6068. It's all just plain text. There is no way to specify that the body is some kind of Rich Text or HTML, and even if there were, you cannot rely on it that most browsers and mail clients and web mail systems would support it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜