Link to the current page.
-------------------
Usually there are the following usages :<a href=# onclick=window.close()>Close</a>
To connect href=# means to the current page, it is meaningless and the page will not be refreshed. The key is the onclick behind. When clicking close, the window.close() code will be executed.
You might say why you don't just write it as <a onclick=window.close()>Close</a>
If you write this way, closing these two words will not be processed as a superconnect, and the effect will look a little worse. You can try it yourself. When creating a web page, the parameters in the html language are used to specify the link. The URL #### is the link to this page, and the href=address is the link to the address. This page defaults to this page. No new window pops up. When the connection is empty, if # is removed, the mouse hand cursor will not be displayed. In simple terms, it is a fake link to this page
You can also follow the anchor id after #. This is actually another way to use a bookmark.
Create a bookmarkSyntax: <a name=bookmark name>text</a>
Bookmarks linked to the same page (used)
Syntax: <a href=#bookmark name>link text</a>
Bookmarks linked to different pages
Syntax: <a href=Address#bookmark name>Link text</a> (note the quotes and #)
Under normal circumstances, click the link of the text of the link: <a href=#bookmark name>, and the cursor will automatically jump to the location of the page: <a name=bookmark name>text</a>.
But if you write the text of the link without writing the bookmark name, it is actually nothing to jump. Generally, href=# will only be reached when <a onclick=>
Just think it's empty link, so you can write it like the link effect (such as the mouse becomes smaller) but there is no page jump