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 hyperlink Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "hyperlink" Watch "hyperlink" New topic


Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi All,

i saw some hyperlink like below

<a href="#"> or <a href=".">
...when i click the link,it takes me to the login page..surprise!!

it is not showing any error...

please anyone can explain me

thanks & regards,
[ April 15, 2008: Message edited by: Bear Bibeault ]
Joe Ess

Joined: Oct 29, 2001
Posts: 9167

This is a question about HTML, and would be better placed in our HTML forum. Please remember to carefully choose your forum.
An anchor tag with a "#" is a fragment identifier, a link within a document (our own Struts FAQ is full of them). Of course, if it doesn't have a label after the "#" and a matching label somewhere else in the document, it isn't going to link anywhere.
I'd expect an anchor containing only "." to be a self-reference.
Where did you find these examples?

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: hyperlink
It's not a secret anymore!