Skip to content Skip to sidebar Skip to footer

Href Link To # Question

I have a question about the href link, tried googling it but could not find much info on this. I have a href link like this: and then jump to them by adding #anchor to the page's URL. The browser will jump to the position without reloading.

If linking to page.htm produced an error, then page.htm is an incorrect link.

The href attribute is there only as fallback in case there is no Javascript. Javascripts's return false; prevents execution of the link. Linking to # means that if javascript is turned off, nothing will happen by clicking on the link except that the browser will jump to the top of the page.

Solution 2:

See: http://www.w3.org/TR/html4/struct/links.html

A # indicates a link to a [named] anchor within a page.

An <A> which invokes some javascript generally doesn't work with the "open in new window/tab" command.

Post a Comment for "Href Link To # Question"