document.links["id"].href -> Browsersafe?

Giganews Newsgroups
Subject: document.links["id"].href -> Browsersafe?
Posted by:  Konrad Mathieu (nospam@nospam.com)
Date: Thu, 17 Jul 2003

Does this work in most browsers, namely MSIE?

document.links["idOfTheElement"].href

or does it have to be

document.links[0].href

?

Thanks and cheers,
Konrad

Replies