当前位置: 代码迷 >> HTML/CSS >> HTML空链接的功用
  详细解决方案

HTML空链接的功用

热度:153   发布时间:2013-01-23 10:44:49.0
HTML空链接的作用

空链接:
 就是没有目标端点的链接。
 格式<a href="#">显示内容</a>

空连接的作用
1.设为首页
<a href="#"
 onclick="this.style.behavior='url(#default#homepage)';this.sethomepage('http://www.sohu.com')">设为首页</a>
2.添加收藏
<a href="#"
 onclick="javascript:window.external.addfavorite('http://www.sohu.com','搜狐')">加入收藏夹</a>

  相关解决方案