What is the use of empty links in html

王林
Release: 2020-04-02 15:31:51
forward
4754 people have browsed it

What is the use of empty links in html

What is an empty link?

is a link without a target endpoint.

The format is as follows:

<a href="#">显示内容</a>
Copy after login

(Recommended tutorial: html introductory tutorial)

Function:

1. Set as homepage

<a href="#"
onclick="this.style.behavior=&#39;url(#default#homepage)&#39;;this.sethomepage(&#39;https://www.jb51.net&#39;)">设为首页</a>
Copy after login

2. Add favorites

<a href="#"
onclick="javascript:window.external.addfavorite(&#39;https://www.jb51.net&#39;,&#39;搜狐&#39;)">加入收藏夹</a>
Copy after login

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!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template