link with href="#" scrolls page to top when used with jquery slidetoggle [duplicate]
link with href="#" scrolls page to top when used with jquery slidetoggle [duplicate] jquery
jquery
Others have given you solutions. But to specifically answer your question, # refers to the current page. And since the interpretation of tags is to bring the top of the tag into view, clicking on a # tag scrolls you to the top of the current page.