JRS: In article <Xc******************@newsread3.news.atl.earthlink .net>
, seen in news:comp.lang.javascript, Jeff Thies <no****@nospam.net>
posted at Fri, 26 Dec 2003 18:36:39 :-
It seems to me that document.getElementById and document.all are
essentially the same thing.
I'm thinking of prototyping document.getElementById for those browsers that
understand document.all but not document.getElementById (IE4).
Is that a reasonable thing to do? Suggestions?
Article
From:
hi************@aol.com (HikksNotAtHome)
Newsgroups: comp.lang.javascript
Date: 24 Jun 2003 21:37:32 GMT
Subject: Re: Script Won't Upload in Netscape
Message-ID: <20***************************@mb-m15.aol.com>
included
if (document.all && !document.getElementById) {
document.getElementById = function(id) {
return document.all[id];
}
}
That looks worth a <FAQENTRY> to me; and I put it in my <URL:
http://www.
merlyn.demon.co.uk/js-other.htm> as an example of Object Detection.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.