aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes What is # in href declaration? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "What is # in href declaration?" Watch "What is # in href declaration?" New topic
Author

What is # in href declaration?

Naveen Morrise
Greenhorn

Joined: Jun 06, 2006
Posts: 25
I am new to the Java script code and can any one explain me what in 'href="#"' means and what it represents.


Naveen
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 62118
    
  68

It is used to reference a named anchor within a page.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15379
    
    6
That is not JavaScript...it is HTML.

Eric
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: What is # in href declaration?