设为首页:
Code
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
(或者这样也可以:<a href="javascript:;" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage(location.href);return(false);">设为首页</a>)
加入收藏:
function addfavo()
{
window.external.AddFavorite(location.href, document.title);
}
{
window.external.AddFavorite(location.href, document.title);
}