- 将当前页加入收藏夹的JS
<a style="cursor:hand" onClick="window.external.addFavorite(top.location.href,'加在收藏夹中的页面名称)">将本页加入收藏夹</a>
- 将某个网站加入设为首页的JS
<span οnclick="var strHref=window.location.href;this.style.behavior='url fault#homepage)';this.setHomePage('http://www.sitehome.cn');" style="CURSOR: hand">设为首页</span>