Object.prototype In Javascript
I have some JavaScript code that defines a function getElementsByAttribute as follows: Object.prototype.getElementsByAttribute = function(attr) { var children = this.all || thi
Solution 1:
IE DOM elements aren't normal Javascript objects and do not inherit prototypes as you would expect.
http://perfectionkills.com/whats-wrong-with-extending-the-dom/
Post a Comment for "Object.prototype In Javascript"