shorten a method string



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

.



Relevant Pages

  • Re: shorten a method string
    ... neoswf wrote on 31 jan 2006 in comp.lang.javascript: ... i want to shorten getElementById() string at my files. ... Prev by Date: ...
    (comp.lang.javascript)
  • Re: can someone please help me with making this class
    ... struct and another I put the insert in. ... string phoneNo; ... node *temp, *prev; ...
    (microsoft.public.vc.language)
  • Re: Handling Large files (a few Gb) in Perl
    ... search through each string looking for a specific character. ... my $prev = 0; ... sub use_length { ... Rate index length ...
    (comp.lang.perl.misc)
  • Re: can someone please help me with making this class
    ... string phoneNo; ... node *temp, *prev; ...
    (microsoft.public.vc.language)
  • Re: regex problem
    ... s> Why isn't it deleting the value of $prev in $line? ... >> the code you have there out of pure luck and coincidence. ... BM> string', unless /m is given, in which case it means 'match at ... The relevant bits of the original code are ...
    (comp.lang.perl.misc)