Home  >  Article  >  Web Front-end  >  Example code for sending emails from html favorites and setting the homepage

Example code for sending emails from html favorites and setting the homepage

高洛峰
高洛峰Original
2017-03-31 11:41:032089browse

This article mainly introduces in detail the example code for setting the homepage of sending email from html favorites. It has certain reference value. Interested friends can refer to it

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"   http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv = "content-type" content="text/html;charset=utf-8"/><!--设置编码集  同时注意设置的编码集方式要和保存时方式相同  save as -->
<a href="javascript:window.external.AddFavorite(&#39;http://www.baidu.com&#39;,&#39;编程&#39;)">收藏</a>
</head>
<body>
<a href="javascript:window.external.AddFavorite(&#39;http://www.baidu.com&#39;,&#39;编程&#39;)">收藏</a>
<a href="mailto:1032036512@qq.com">联系我们</a>
<a href="#" onClick="this.style.behavior=&#39;url(#default#homepage)&#39;;this.sethomepage(&#39;http://www.baidu.com&#39;)">设为首页</a>
</body>
</html>

The above is the detailed content of Example code for sending emails from html favorites and setting the homepage. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn