473,625 Members | 2,733 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reserved words in MSIE6 "top" ?

How was I to know that "top" means "top" in MSIE6 ??

I was testing <a name="top"></a> at the top of the page

with <a href="#top>go to top</a> at the bottom of the page.

It always worked in IE so I drew conclusions only to
discover that it worked even with <a name="xtop"></a>

but not in Opera. IE6 understands "top" to mean *the top* !

Are there other magic words in MSIE (or other browsers?)

Mason C
Jul 24 '05 #1
19 3289
Once upon a time *Mason A. Clark* wrote:
How was I to know that "top" means "top" in MSIE6 ??

I was testing <a name="top"></a> at the top of the page

with <a href="#top>go to top</a> at the bottom of the page.

It always worked in IE so I drew conclusions only to
discover that it worked even with <a name="xtop"></a>

but not in Opera. IE6 understands "top" to mean *the top* !

Are there other magic words in MSIE (or other browsers?)


I don't think IE understand anything of the kind :)
When you use a link to "#any thing" and the browser don't find
anything that match that, I belive it just jump up to the top of the page.

--
/Arne

Top posters will be ignored. Quote the part you
are replying to, no more and no less! And don't
quote signatures, thank you.
Jul 24 '05 #2
Mason A. Clark wrote:
How was I to know that "top" means "top" in MSIE6 ??

I was testing <a name="top"></a> at the top of the page

with <a href="#top>go to top</a> at the bottom of the page.

It always worked in IE so I drew conclusions only to
discover that it worked even with <a name="xtop"></a>

but not in Opera. IE6 understands "top" to mean *the top* !


If you *did* have <a name="top"> at the top of the page, then how did
you conclude, when <a href="#top"> worked, that IE6 understands "top"
automatically to mean *the top*?

There's nothing magic about "top" in IE. What's magic is the IE
incorrectly treats *any* href="#abcde" as a request for the top if the
name abcde isn't defined on the page.
Jul 24 '05 #3
On Thu, 07 Jul 2005 23:50:52 +0200, Arne <in*****@domain .invalid> wrote:
Once upon a time *Mason A. Clark* wrote:
How was I to know that "top" means "top" in MSIE6 ??

I was testing <a name="top"></a> at the top of the page

with <a href="#top>go to top</a> at the bottom of the page.

It always worked in IE so I drew conclusions only to
discover that it worked even with <a name="xtop"></a>

but not in Opera. IE6 understands "top" to mean *the top* !

Are there other magic words in MSIE (or other browsers?)


I don't think IE understand anything of the kind :)
When you use a link to "#any thing" and the browser don't find
anything that match that, I belive it just jump up to the top of the page.


Vas you dere, Charlie? IE6 does NOT go to top with <a href="xxxtop">
IE6 DOES go to the top with <a href="top"> even if there's NO <a name="xxxtop>

Opera goes to top if <a name="top"> is there, not otherwise.

IE6 understands "top" to mean top. Opera does not.

Mason C awaiting proof otherwise (not on MY browsers)
Jul 24 '05 #4
On Thu, 07 Jul 2005 17:51:53 -0400, Harlan Messinger
<hm************ *******@comcast .net> wrote:
Mason A. Clark wrote:
How was I to know that "top" means "top" in MSIE6 ??

I was testing <a name="top"></a> at the top of the page

with <a href="#top>go to top</a> at the bottom of the page.

It always worked in IE so I drew conclusions only to
discover that it worked even with <a name="xtop"></a>

but not in Opera. IE6 understands "top" to mean *the top* !
If you *did* have <a name="top"> at the top of the page, then how did
you conclude, when <a href="#top"> worked, that IE6 understands "top"
automaticall y to mean *the top*?


Did I not type clearly? IE6 goes to the top whether or not there's a
<a name="top"> at the top. Opera does not.
There's nothing magic about "top" in IE. What's magic is the IE
incorrectly treats *any* href="#abcde" as a request for the top if the
name abcde isn't defined on the page.


Not on my IE6 it doesn't. I tried #abcde and #top with <a name="xtop">
at the top.

Mason C I know nothing about html; just use it.
Jul 24 '05 #5
Mason A. Clark <ma************ *@ix.netcom.com > wrote:
Opera goes to top if <a name="top"> is there, not otherwise.
Nor should it.
IE6 understands "top" to mean top.
IE "understand s" nothing.
Opera does not.
Where did you get the illusion that "top" is a predefined keyword?
Mason C awaiting proof otherwise (not on MY browsers)


Your difficulties seem to result from the fact that you take IE's
behaviour as the correct behaviour. Wake up to the real world, correct
behaviour is defined by specifications, not by a badly broken piece of
junk such as IE.

--
Spartanicus
Jul 24 '05 #6
On Fri, 08 Jul 2005 07:32:39 GMT, Spartanicus <in*****@invali d.invalid> wrote:
Mason A. Clark <ma************ *@ix.netcom.com > wrote:
Opera goes to top if <a name="top"> is there, not otherwise.
Nor should it.
IE6 understands "top" to mean top.


IE "understand s" nothing.
Opera does not.


Where did you get the illusion that "top" is a predefined keyword?


Because IE6, that real-world abomination, recognizes it.
Mason C awaiting proof otherwise (not on MY browsers)


Your difficulties seem to result from the fact that you take IE's
behaviour as the correct behaviour. Wake up to the real world, correct
behaviour is defined by specifications, not by a badly broken piece of
junk such as IE.


Which just happens to be the most common browser. In the real world
I would like *my* web pages to be operational in that browser.

Mason C you live in your world, I'll live in mine

Jul 24 '05 #7
Els
Mason A. Clark wrote:
On Fri, 08 Jul 2005 07:32:39 GMT, Spartanicus <in*****@invali d.invalid> wrote:
Mason A. Clark <ma************ *@ix.netcom.com > wrote:
Opera goes to top if <a name="top"> is there, not otherwise.


Nor should it.
IE6 understands "top" to mean top.


IE "understand s" nothing.
Opera does not.


Where did you get the illusion that "top" is a predefined keyword?


Because IE6, that real-world abomination, recognizes it.
Mason C awaiting proof otherwise (not on MY browsers)


Your difficulties seem to result from the fact that you take IE's
behaviour as the correct behaviour. Wake up to the real world, correct
behaviour is defined by specifications, not by a badly broken piece of
junk such as IE.


Which just happens to be the most common browser. In the real world
I would like *my* web pages to be operational in that browser.


You're missing the point.
If you write a nice <a name="top" id="top"></a> in the top of your
page, it will still work in IE. The fact that you /can/ also omit it
in IE, does not mean you /should/.

If you want to please IE users and annoy all the other people, yes, go
ahead and build on IE's understanding of the word 'top'. If you want
everybody to be able to click a back to top link, use a proper anchor,
like the specs define, and like even IE follows. The fact that IE
follows any #top link, regardless of there being an anchor, is only
useful for webdesigners who should be aware to test their links in
other browsers than IE, cause IE wouldn't notice the absence of the
anchor.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 24 '05 #8
oops -- see post above Els's
Jul 24 '05 #9
Mason A. Clark wrote:
On Thu, 07 Jul 2005 17:51:53 -0400, Harlan Messinger
<hm************ *******@comcast .net> wrote:

Mason A. Clark wrote:
How was I to know that "top" means "top" in MSIE6 ??

I was testing <a name="top"></a> at the top of the page

with <a href="#top>go to top</a> at the bottom of the page.

It always worked in IE so I drew conclusions only to
discover that it worked even with <a name="xtop"></a>

but not in Opera. IE6 understands "top" to mean *the top* !


If you *did* have <a name="top"> at the top of the page, then how did
you conclude, when <a href="#top"> worked, that IE6 understands "top"
automatical ly to mean *the top*?

Did I not type clearly? IE6 goes to the top whether or not there's a
<a name="top"> at the top. Opera does not.


Which doesn't mean that "IE6 understands 'top' to mean *the top*", which
was your conclusion.

Now I've gone and tested it and I see that you're right--href="#top"
works in IE but href="#asldfkja lsd", for example, doesn't, even when
when no names or IDs are on the page at all. Maybe it was NN4 that used
to jump to the top for any undefined name and I was misremembering. Sorry.
Jul 24 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
7674
by: Flapper | last post by:
Help please, Have a situation when converting from Oracle SP's to SQL SP's. The old oracle cursor was roughly as follows CURSOR cur_rsStock IS select * from (select StockRowId, CategoryId
87
5186
by: ziliath | last post by:
I recently tried out the Google "top coder" contest, as a C++ coder. I noticed immediately that they expected me to know STL. To which I say, what the fuck?! I may be missing something, but at what point when learning C++ was I supposed to have picked up STL? I ask because at every job I've had, and every job interview for that matter, whenever STL comes up it's not I, but a manager who says effectively yuck, we don't use that crap.
6
7047
by: Mason A. Clark | last post by:
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.
16
4436
by: Gufus | last post by:
Hi Group... <a name="#top"></a> ----del---- ----del---- <img SRC="images/top.gif" USEMAP="#top" BORDER=0> <map NAME="top">
16
2935
by: J. C. Denton | last post by:
I just manually validated alexa's global top 100 sites and find only 2 sites that pass validation. They are http://www.microsoft.com/ http://www.wikipedia.org/ All others should go w3c markup hall of shame, ;-)
2
2211
by: TadPole | last post by:
Hi all, My main problems are::::::::: 1. Set a value within a block container that can be used and changed by subsequent templates/block-containers/tables etc.. 2. get/determine/find the setting that tell the process that the new top of the document region is now at the end of the last block-container used, this must be set in that last block container. 3. find the value used in the 'top" setting on the prior
3
1628
by: snoonan | last post by:
The company in quesiton does construction work. Tables look like this: ***Job Table*** JobNumberID* JobName ***JobNote Table*** JobNoteID* JobNumberID* JobNoteCreateDate
1
1528
by: sheldonlg | last post by:
I define a div, excItem, with absolute positioning and with a top of 400px. I then call a javascript function which does toggling of visibility and should do positioning as well. I loop though the parents with offsetTop to get the position of the clicking element, which here is set in "y". Here is the code snippet: excItem.style.top = y + 20; alert('y=' + y + ' top=' + excItem.style.top);
0
8253
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8189
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8635
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8497
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6116
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4089
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4192
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2621
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.