#Contains a location information
The default anchor is #top, which is the upper end of the web page
And javascript:void(0) only represents a dead link
This is why sometimes the page is long and the link is clearly # but jumps to the top of the page
And javascript:void(0) is not the case
So it is best to use void(0) when calling scripts
You can use the following example to test it:
Code
Tip: You can modify some code first and then run it