In comp.lang.javascript message <>,
Fri, 11 Jul 2008 00:21:35, Aaron Gray <> posted:
>
>I know the 'document.getElementById()' issue is really over since every
>browser since 1998 supports the W3C DOM standard, but I could not resist
>this offering :-
>
> if (!document.getElementById)
> document.getElementById = function(id) { return document.all[id]; }
>
>This should then provide a getElementById function if one does not already
>exist.
>
>Is anyone in a position to be able to test this code ?
A version tested in MS IE 4 is at <URL:
http://www.merlyn.demon.co.uk/js-
versn.htm#SSF>; I cannot repeat the test.
I don't recall anyone complaining that it did not work in the
circumstances in which I used it. But it does not reproduce all
features.
To get it rested in Netscape 4, I suggest that you ask the custodian of
the Davar site, who posts advertisements here from time to time.
Evidently he is keen to support those hoping to upgrade to Netscape 4.8.
It's a good idea to read the newsgroup c.l.j and its FAQ. See below.
--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk IE7 FF2 Op9 Sf3
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<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.