javascript 'mailto'命令
什么用于将“mailto”javascript 中的文本加粗? 经过一番研究,我发现 %0A 用于插入新行。
这是我的 javascript:
location.href="mailto:" +
"?subject=" + "Sub:{!Trigger_Event__c.Title__c}" +
"&body="+ "Title:{!Trigger_Event__c.Title__c}"+"%0AOrganization:" + "{!Trigger_Event__c.Account__c}";
我需要将脚本中的“标题”加粗。
请提供您的意见..
提前致谢。
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 script.
Kindly provide your inputs..
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您希望将邮件正文中的“标题”文本设置为粗体。像这样的东西:
..."&body="+ "Title:{!Trigger_Event__c.Title__c} "+"%0A...
这就是什么你的意思是,这是不可能的。官方定义在 RFC 6068 中。 都只是纯文本,无法指定正文是某种 RTF 文本还是 HTML,即使有,您也不能依赖大多数浏览器、邮件客户端和 Web 邮件系统。会支持的。
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.