What is an empty link?
is a link without a target endpoint.
The format is as follows:
<a href="#">显示内容</a>
(Recommended tutorial: html introductory tutorial)
Function:
1. Set as homepage
<a href="#" onclick="this.style.behavior='url(#default#homepage)';this.sethomepage('https://www.jb51.net')">设为首页</a>
2. Add favorites
<a href="#" onclick="javascript:window.external.addfavorite('https://www.jb51.net','搜狐')">加入收藏夹</a>
Recommended related video tutorials: html video tutorial
The above is the detailed content of What is the use of empty links in html. For more information, please follow other related articles on the PHP Chinese website!