Using OOP, you can shorten your time spent typing "document.getElementById()" to something short as shown here:
I use "Tie" as mine, since it's easy for me to remember hehe.
Code:
Tie = function () {} // This just declares the object "Tie".
Tie.id = function (div) {
return document.getElementById(div);
}
Now if you need to get something by using ID, You only have to type:
Code:
Tie.id("whatyouwant").innerHTML = "Useful";
I find this saves me a lot of time.