赤峰热电:网页中设为主页和加入收藏夹代码?
来源:百度文库 编辑:中科新闻网 时间:2024/07/06 00:55:42
<span onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.dabaoku.com');" style="CURSOR: hand">设为首页</span>
<a href="javascript:void(0);" onClick="window.external.AddFavorite(document.location.href,document.title)">加入收藏</a>