<a> tag + onclick= ' {Jscode} ' is a very common way to use JS, instead of using href= ' Javascript:{jscode} ' is to be compatible with multiple browsers to interpret and handle <a> tags differently.
Use <a> tag + onclick= ' {Jscode} ' often add a href= ' # # # ', and sometimes this href= ' # # # ' will be mistakenly written as <a href= ' # ' > is because the user does not understand ' # ' and ' # # ' The difference, ' # ' is a specific meaning, if ' # ' after the content will be considered a label and from the page to find the corresponding tag to jump to that place, can not find the page will jump to the top, ' # # ' is actually a meaningless label designation, that is, a ' # ' and does not exist the label ' # # ' combination, The page does not find a <a> named ' # # ' When the link does not jump, it will not cause the content in the onclick to suddenly occur when the page jumps to the top of the question. ' # # # ' is only a user's habit, if you want to, you can easily find a jump to the label as a name.
The difference between href= ' # ' and href= ' # # # in the link