name anchor problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have a website with some name anchors in it, like <a

The problem is that my error reporting system with a certain regularity
reports about people trying to reach for example: . As the referring page
mentioned is the page itself and the browser mentioned is just IE or
Mozilla I am wondering what is causing this problem.

One of the options is that it might have to do with my charset utf-8.

I hope anyone recognizes this phenomena and can tell me what causes it.



Re: name anchor problem


Quoted text here. Click to load it

That's not a name anchor. It's a link that refers to an element in the same
document using a fragment identifier, which _might_ be defined using a name
anchor (<a name=...>...</a>) or using an id="..." attribute.

Quoted text here. Click to load it

Really? So where is the URL of your site? I am actually rather sure that you
gave a forged URL. Yes, it's forged, because it's intentionally wrong,
incorrect by fabrication. The URL gives
a 404 error message, but it's a URL under control of the domain.

If you don't want to reveal the real URL, i.e. if you don't want to be
helped, at least use the .example convention to indicate a fictitious URL
that is guaranteed not to coincide with a real URL.

Quoted text here. Click to load it

The odds are that you have a badly written link on your page.

Quoted text here. Click to load it

The character "#" has the same representation in UTF-8 as in ASCII, ISO 8859
encodings, and many more. But of course if your page isn't _actually_ UTF-8
encoded though declared to be, or vice versa, which is not very uncommon,
anything may happen.

Jukka K. Korpela ("Yucca")

Re: name anchor problem

<a href="#bookmark">Click here to skip ahead</a>
<a name="bookmark"><strong>cool! you skipped ahead!</strong></a>

thats how ive always done it, and ve never had problems with it on
firefox or any other browser, in ISO-9958-1 or UTF-8. maybe you have
your # in teh wrong element ?

Jukka K. Korpela wrote:
Quoted text here. Click to load it

Re: name anchor problem

keeper wrote:

Please don't top post keeper,

Quoted text here. Click to load it

Better and a bit more modern:

<a href="#bookmark">Click here to skip ahead</a>
<p id="bookmark"><strong>Cool! you skipped ahead!</strong>...

element IDs can accessed as anchors with document. Saves the superfluous
<a name="someAnchor"></a> markup...

Take care,


Re: name anchor problem wrote:

Quoted text here. Click to load it

Tell us the URL and we might be able to help.

Site Timeline