473,386 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

IE-only href

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
2 1309
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: gcash | last post by:
I'm having problems with some attributes in Internet Explorer. I'm trying to figure out how to set things up so I don't have to do my own event loop even though I'm using DispatchWithEvents() ...
2
by: EricP | last post by:
I'm trying to figure out how to print from IE 6.0 using Python's Win32all com library. When I do from win32com.client import Dispatch from time import sleep ie =...
7
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard...
22
by: Daniel Déchelotte | last post by:
Hi, Once I was happy with my new deezign, I noticed how bad it breaks in IE (all versions I tried). Since IE7 didn't give acceptable results, I wrote a simplified style that I would fetch to IE....
0
by: MisterB | last post by:
When I compile the following code in Visual Studio, I don't see the tabs on the web page ... just the words Tab One Tab Two?? Can anyone tell me what's wrong with my code?? ============ <%@ Page...
10
by: Chris Wertman | last post by:
I am looking to capture the URL of the ACTIVE IE window. How the heck can I determine which window is the active window. Better yet how do I grab the URL of that particular window ? I am...
4
by: outforblood74 | last post by:
Ok here's the deal, the for each statment using VB 6 doesn't loop all the objects. I would like it to close all the IE browsers that are open, but it doesn't work. And now I'm concerned that its...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
3
by: webEater | last post by:
I have some problems with my IE 6 (and IE 5.5 separate) installation, that I still (have to :-() use for website testing. 3 problems: - IE 6 and even IE 7 (when I install standalone version)...
0
by: Andrew Meador | last post by:
I have implemented a printing scenario where an html file is printed using the the following code: public void PrintHtmlFile(string url) { RegistryKey IERegKey; string header = null; string...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.