Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Link with "#" throws to top of page Reply To: Link with "#" throws to top of page

#199041
Paulie_D
Member

You should (almost) never have href=”#”. It is a link to an undefined anchor (which will be the top of the page). People who use it normally do so because they want to dangle JavaScript off it.

If you don’t want a link to actually go somewhere there’s not much point in using a link.

Stack Overflow reference