File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "What is # in href declaration?" Watch "What is # in href declaration?" New topic

What is # in href declaration?

Naveen Morrise

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.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63873

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

[Asking smart questions] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
That is not is HTML.

I agree. Here's the link:
subject: What is # in href declaration?
It's not a secret anymore!