Home > Article > Web Front-end > Example code for sending emails from html favorites and setting the homepage
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('http://www.baidu.com','编程')">收藏</a> </head> <body> <a href="javascript:window.external.AddFavorite('http://www.baidu.com','编程')">收藏</a> <a href="mailto:1032036512@qq.com">联系我们</a> <a href="#" onClick="this.style.behavior='url(#default#homepage)';this.sethomepage('http://www.baidu.com')">设为首页</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!