88
rated 0 times
[
95]
[
7]
/ answers: 1 / hits: 23346
/ 14 Years ago, sat, february 19, 2011, 12:00:00
I would like to create a new function that I can use on elements, like this:
document.getElementById(element).myNewFunction();
I'm not talking about this:
document.getElementById(element).myNewFunction = function(){
doSomething...
}
Because this works on that element only, but how should I create global function what I can use on all elements like the ones what are built in to JavaScript?
More From » function