80
rated 0 times
[
85]
[
5]
/ answers: 1 / hits: 25265
/ 14 Years ago, wed, january 12, 2011, 12:00:00
For example for this.parentNode
I would like to just write this.p
or instead of
document.getElementById('someid')
just write document.g('someid')
. Of course that are simple examples, I just want to know what is the correct way to do it.
(I know I can use jQuery or Prototype, but I'd like to learn how it is really done in JS)
More From » methods