98
rated 0 times
[
101]
[
3]
/ answers: 1 / hits: 21357
/ 15 Years ago, thu, april 23, 2009, 12:00:00
In Javascript, you can extend existing classes by using its prototype object:
String.prototype.getFirstLetter = function() {
return this[0];
};
Is it possible to use this method to extend DOM elements?
More From » dom