By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,272 Members | 1,403 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,272 IT Pros & Developers. It's quick & easy.

"<a name="top"> last word 3 browsers

P: n/a
LAST WORD(s):

1. MSIE6 and Firefox will go to the top of the page on
command <a href="#top">go upsy</a> even if
there is NO name="top" or id="top"

They know what a "top" is :-)

Opera does not.

2. None go to the top or anywhere just for <a href="#foo">
with no "foo" target (unless "foo" is "top").

3. Opera will not find <a name="foo"></a> or any other
name if there is no content in <a></a>

4. MSIE6 and Firefox do not require that content.

5. id="foo" is equivalent to name="foo"

6. In this business don't believe anything. test test test
(note: when testing clear the caches)

Mason C If no questions, class is excused.
Jul 24 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Els
Mason A. Clark wrote:
LAST WORD(s):

1. MSIE6 and Firefox will go to the top of the page on
command <a href="#top">go upsy</a> even if
there is NO name="top" or id="top"

They know what a "top" is :-)

Opera does not.

2. None go to the top or anywhere just for <a href="#foo">
with no "foo" target (unless "foo" is "top").

3. Opera will not find <a name="foo"></a> or any other
name if there is no content in <a></a>

4. MSIE6 and Firefox do not require that content.

5. id="foo" is equivalent to name="foo"

6. In this business don't believe anything. test test test
(note: when testing clear the caches)


You're on a one man quest without reading any responses, aren't you?

Spartanicus provided you with a test that shows that your nr. 3 is
incorrect. Then you write nr. 6 and don't provide any tests yourself.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -
Jul 24 '05 #2

P: n/a
On Fri, 08 Jul 2005 07:51:27 GMT, Mason A. Clark <ma*************@ix.netcom.com>
wrote:
LAST WORD(s):

1. MSIE6 and Firefox will go to the top of the page on
command <a href="#top">go upsy</a> even if
there is NO name="top" or id="top"

They know what a "top" is :-)

Opera does not.

2. None go to the top or anywhere just for <a href="#foo">
with no "foo" target (unless "foo" is "top").

3. Opera will not find <a name="foo"></a> or any other
name if there is no content in <a></a>

4. MSIE6 and Firefox do not require that content.

5. id="foo" is equivalent to name="foo"

6. In this business don't believe anything. test test test
(note: when testing clear the caches)

Mason C If no questions, class is excused.


I'm required to admit:

After *many* tests of the above on a particular (valid) web page of
mine I tried to make a bare-bones simple demo page (in response to
a claim by Els) and Opera finds <a name etc...></a> with no content.

I resign. No, I'll post the actual problem. A validated page:

http://masonc.home.netcom.com/1template-1.html

Opera will not return to the top -- look for the link at the bottom.

Mason C
Jul 24 '05 #3

P: n/a
Els
Mason A. Clark wrote:
On Fri, 08 Jul 2005 07:51:27 GMT, Mason A. Clark <ma*************@ix.netcom.com>
wrote:
LAST WORD(s):

1. MSIE6 and Firefox will go to the top of the page on
command <a href="#top">go upsy</a> even if
there is NO name="top" or id="top"

They know what a "top" is :-)

Opera does not.

2. None go to the top or anywhere just for <a href="#foo">
with no "foo" target (unless "foo" is "top").

3. Opera will not find <a name="foo"></a> or any other
name if there is no content in <a></a>

4. MSIE6 and Firefox do not require that content.

5. id="foo" is equivalent to name="foo"

6. In this business don't believe anything. test test test
(note: when testing clear the caches)

Mason C If no questions, class is excused.


I'm required to admit:

After *many* tests of the above on a particular (valid) web page of
mine I tried to make a bare-bones simple demo page (in response to
a claim by Els) and Opera finds <a name etc...></a> with no content.

I resign. No, I'll post the actual problem. A validated page:

http://masonc.home.netcom.com/1template-1.html

Opera will not return to the top -- look for the link at the bottom.


Yup, noted.

I don't know the cause of it exactly, I just tested some stuff myself,
and found for instance IE not wanting to go to the bottom of the page
(<a name="bottom" id="bottom></a>), unless I put content in, or
changed the <a> to a <br> (!), or made sure there was some other
element between that anchor and a previous link.

Still testing to find out what exactly was the cause, will post here
if I find it.

Some time ago I already found that some browser(s) (forgot which one)
don't go to anchors that are in double use. I had tried something like
<a href="#content" name="top" id="top">skip to content</a>, and it
just didn't work as an anchor.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -
Now playing: Status Quo - Roadhouse Medley (Radio Edit)
Jul 24 '05 #4

P: n/a
Els
Els wrote:
Mason A. Clark wrote:
On Fri, 08 Jul 2005 07:51:27 GMT, Mason A. Clark <ma*************@ix.netcom.com>
wrote:
LAST WORD(s):

1. MSIE6 and Firefox will go to the top of the page on
command <a href="#top">go upsy</a> even if
there is NO name="top" or id="top"

They know what a "top" is :-)

Opera does not.

2. None go to the top or anywhere just for <a href="#foo">
with no "foo" target (unless "foo" is "top").

3. Opera will not find <a name="foo"></a> or any other
name if there is no content in <a></a>

4. MSIE6 and Firefox do not require that content.

5. id="foo" is equivalent to name="foo"

6. In this business don't believe anything. test test test
(note: when testing clear the caches)

Mason C If no questions, class is excused.


I'm required to admit:

After *many* tests of the above on a particular (valid) web page of
mine I tried to make a bare-bones simple demo page (in response to
a claim by Els) and Opera finds <a name etc...></a> with no content.

I resign. No, I'll post the actual problem. A validated page:

http://masonc.home.netcom.com/1template-1.html

Opera will not return to the top -- look for the link at the bottom.


Yup, noted.

I don't know the cause of it exactly,


I found it now though.
It's because of the item right below it has position:fixed.
If you take out position:fixed, the link works.
I reckon that since that div#topbar is fixed at the top of the window,
Opera reckons that you can't go any higher than that.

And apparently, Opera only recognizes the anchor to be in the actual
place in the body, when there's something in it. IMO that's a bug in
Opera.

If you take <a name="top" id="top"></a> and put it in the first cell
of the table, the link works. Obviously the page then doesn't go to
the actual top of the document though. If you link to the id of the
body element, it works too, but that would mean you'd have to change
the back to top link for every page to be in accordance with the body
id of that page, and that it wouldn't work in some really old browsers
which need "name" instead of "id".

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -
Now playing: Deep Purple - Child In Time
Jul 24 '05 #5

P: n/a
"Mason A. Clark" wrote:

LAST WORD(s):

1. MSIE6 and Firefox will go to the top of the page on
command <a href="#top">go upsy</a> even if
there is NO name="top" or id="top"

They know what a "top" is :-)

Opera does not.

2. None go to the top or anywhere just for <a href="#foo">
with no "foo" target (unless "foo" is "top").

3. Opera will not find <a name="foo"></a> or any other
name if there is no content in <a></a>

4. MSIE6 and Firefox do not require that content.

5. id="foo" is equivalent to name="foo"

6. In this business don't believe anything. test test test
(note: when testing clear the caches)

Mason C If no questions, class is excused.


I can verify in Mozilla (upon which Firefox is based) that
selecting a link with a name will result in positioning at the top
of the page if no anchor for that name exists. The name does not
have to be "top". This is a common error when manually composing
HTML, usually resulting from either a typo in the name or failing
to provide the target anchor. When testing the links on a page,
the error is readily detected by the fact that the resulting page
is indeed positioned at the top.

Using a link checker, your case #1 will be flagged as an error.

--

David E. Ross
<URL:http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.
Jul 24 '05 #6

P: n/a
On Fri, 08 Jul 2005 11:08:53 -0700, David Ross <no****@nowhere.not> wrote:
"Mason A. Clark" wrote:

LAST WORD(s):

1. MSIE6 and Firefox will go to the top of the page on
command <a href="#top">go upsy</a> even if
there is NO name="top" or id="top"

They know what a "top" is :-)

Opera does not.

2. None go to the top or anywhere just for <a href="#foo">
with no "foo" target (unless "foo" is "top").

3. Opera will not find <a name="foo"></a> or any other
name if there is no content in <a></a>

4. MSIE6 and Firefox do not require that content.

5. id="foo" is equivalent to name="foo"

6. In this business don't believe anything. test test test
(note: when testing clear the caches)

Mason C If no questions, class is excused.
I can verify in Mozilla (upon which Firefox is based) that
selecting a link with a name will result in positioning at the top
of the page if no anchor for that name exists. The name does not
have to be "top".

My repeated testing in up-to-date versions of IE6, Firefox, and Opera
tells me that the <href="top" name *must* be "top" for IE6 and
Firefox to go to the top where there's no <a name="top"> up there.

They understand "top". Opera does not. Perhaps older versions differ?

Mason C

P.S. This has been educational, thanks, but I'm dropping out of school now.
This is a common error when manually composing
HTML, usually resulting from either a typo in the name or failing
to provide the target anchor. When testing the links on a page,
the error is readily detected by the fact that the resulting page
is indeed positioned at the top.

Using a link checker, your case #1 will be flagged as an error.


Jul 24 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.