1.设为首页:
<a href="#" οnclick="this.style.behavior='url(#default#homepage)';this.sethomepage(location.href);return false;">设置为首页</a>
2.加入收藏:
<a style="cursor:hand" οnclick="window.external.AddFavorite(location.href,document.title);">加入收藏</a>
以上代码直接使用即可。