在HTML中,用什么代码可以把“当前页”设为主页?
来源:百度知道 编辑:UC知道 时间:2024/05/03 12:03:16
<A href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.yoursite.com')">设为首页</A>
| <a href="javascript:window.external.addFavorite('http://www.yoursite.com','你的网站名称')">加入收藏</a>