What does href="#" mean?

<a href="#" onclick="process1()">Start your performance</a> 

Function: Another use
of bookmarks Create bookmark
syntax: <a name="bookmark name">text</a>

link to Bookmark (use)
syntax for the same page: <a href="#bookmark name">text of the link</a>

bookmark
syntax for linking to a different page: <a href="address of the linked file#bookmark name">link The text</a> (note the quotation marks and #)

under normal circumstances, click: <a href="#bookmark name">Link text</a> this link, the cursor will automatically jump to this page:< a name="bookmark name">text</a> location.

But if you write: <a href="#">text of the link</a> without writing the bookmark name, it actually doesn't jump to anything.
Generally, href="#" will only be reached when <a onclick="">. Href="#" means linking to the current page, which is actually meaningless, and the page will not be refreshed at the

end: this is to give The onclick button adds an effect, such as moving the mouse up from an arrow to a small hand

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325035426&siteId=291194637