Re: Decoded Personalized Google code - getElementById()
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Decoded Personalized Google code - getElementById()

From: Aaron Gray <ang.usenet@gmail.com>
Date: Thu Nov 17 2005 - 18:43:20 CET

"Aaron Gray" <ang.usenet@gmail.com> wrote in message
news:3u3njpFvept8U1@individual.net...
> Hi,
>
> Well I have gone and done it, got to the bottom of it.
>
> Nothing spectacular but its good to see how it is done.
>
> Now to distill the brew ...
>

function getElementById( a)
{
  return document.getElementById ? document.getElementById(a) : null
}

Can the null be replaced by :-

        document[ a]

Or anthing else ?

Aaron
Received on Mon Nov 21 03:32:46 2005