Posted By

neal_grosskopf on 04/29/08


Tagged

javascript functions


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

neal_grosskopf
mtelligent


Common JavaScript Functions


 / Published in: JavaScript
 

URL: http://www.nealgrosskopf.com/tech/thread.asp?pid=11

Slim down the size of your javascript by using these custom functions.

  1. function gd(e) { return document.getElementById(e); }
  2. function gs(e) { return document.getElementById(e).style; }
  3. function gv(e) { return document.getElementById(e).value; }
  4. function dw(i) { return document.write(i); }

Report this snippet  

You need to login to post a comment.