shorten a method string
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

shorten a method string

From: neoswf <neoswf@gmail.com>
Date: Tue Jan 31 2006 - 12:58:22 CET

hi. i want to shorten getElementById() string at my files.
ive writen this function:
function gebi(el){
        document.getElementById(el)
}
and when i try to call an ID, i try to call him like this:
gebi('myID').
but this method doesnt succeed.
can you please assist me to achive that goal?

tnx
NeoSwf
Received on Tue Feb 7 21:28:33 2006