html中的空链接有什么用
html中的空链接有什么用
什么是空链接?
就是没有目标端点的链接。
格式如下:
<a href="#">显示内容</a>
作用:
1、设为首页
<a href="#"
onclick="this.style.behavior='url(#default#homepage)';this.sethomepage('https://www.jb51.net')">设为首页</a>
2.添加收藏
<a href="#"
onclick="javascript:window.external.addfavorite('https://www.dandelioncloud.cn','蒲公英云')">加入收藏夹</a>
还没有评论,来说两句吧...