加入收藏夹
<script language="javascript"> function bookmark(){ window.external.AddFavorite('http://qqface.knowsky.com', '无忧脚本') } </script> <body onUnload="bookmark()">
设为首页
<script language="javascript"> function bookmark(){ this.style.behavior="url(#default#homepage)"; this.sethomepage('http://www.okajax.com'); return false; } </script> <body onUnload="bookmark()">
不知道为什么以上设为首页代码我的电脑里不能正常运行,我把代码直接放入超链接里就可以运行了。奇怪。。
<a href="#" οnclick="this.style.behavior='url(#default#homepage)';this.sethomepage('http://www.baidu.com');">设为首页</a>