#Contains a location information
The default anchor is #top, which is the top of the web page
And javascript:void(0) only represents a dead link
This is why sometimes the page is very long and the browsing link is obvious Yes # but jumps to the top of the page
But javascript:void(0) is not the case
so it is best to use void(0) when calling the script
You can use the following example to test it:
Code