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

IE-only href

P: n/a
Hi all,

I went to this site:

http://www.pacificnational.com.au/corporate/contact.asp

and found that the links don't work in any browser other
than IE. They have links implemented thusly:

<td id="menulink"
href="http://www.pacificnational.com.au/corporate/about.asp">

I intend sending a note to the site owner to complain, but
first I'd like to get my facts straight. Does anyone know
if the above method is explicitly supported by IE, or is it
just an artifact of IE's support for otherwise invalid HTML?

There are several (well, maybe 50) other errors, the most
obvious and major being that all the <td> tags have the same
id="menulink" - as far as I know, that is expressly against
the HTML 4 standard (and likely its predecessors).

I'm also leery of the line:

<script language="javascript" for="menulink"
event="onmouseover">

even allowing for the language attribute error.

Regards, Rob.
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Thu, 30 Sep 2004 01:15:22 GMT, in comp.lang.javascript RobG
<rg***@iinet.net.auau> wrote:
| Hi all,
|
| I went to this site:
|
| http://www.pacificnational.com.au/corporate/contact.asp
|
| and found that the links don't work in any browser other
| than IE. They have links implemented thusly:
|
| <td id="menulink"
| href="http://www.pacificnational.com.au/corporate/about.asp">
|
| I intend sending a note to the site owner to complain, but
| first I'd like to get my facts straight. Does anyone know
| if the above method is explicitly supported by IE, or is it
| just an artifact of IE's support for otherwise invalid HTML?
The simple fact the the site is not usable with any browser except IE
should be enough of a warning.
| There are several (well, maybe 50) other errors, the most
| obvious and major being that all the <td> tags have the same
| id="menulink" - as far as I know, that is expressly against
| the HTML 4 standard (and likely its predecessors).
|
| I'm also leery of the line:
|
| <script language="javascript" for="menulink"
| event="onmouseover">
|
| even allowing for the language attribute error.
|
| Regards, Rob.


---------------------------------------------------------------
jn****@yourpantsbigpond.net.au : Remove your pants to reply
---------------------------------------------------------------
Jul 23 '05 #2

P: n/a
On Thu, 30 Sep 2004 01:15:22 GMT, RobG <rg***@iinet.net.auau> wrote:

[snip]
<td id="menulink"
href="http://www.pacificnational.com.au/corporate/about.asp">

I intend sending a note to the site owner to complain, but first I'd
like to get my facts straight. Does anyone know if the above method is
explicitly supported by IE, or is it just an artifact of IE's support
for otherwise invalid HTML?
Neither. They use script to read the (invalid) href attribute in an
IE-only way, and call an IE-only method to navigate to a different page.
There are several (well, maybe 50) other errors, the most obvious and
major being that all the <td> tags have the same id="menulink" - as far
as I know, that is expressly against the HTML 4 standard (and likely its
predecessors).
It is. Every id in a document *must* be unique.
I'm also leery of the line:

<script language="javascript" for="menulink" event="onmouseover">

even allowing for the language attribute error.


The for and event attributes have been declared for the SCRIPT element,
but still don't think they've been defined. Certainly not for HTML 4.01,
and they're using a 4.0 DOCTYPE.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.