How do I do something like the following, but only for DOM objects, not all objects:
Object.prototype.hide = function() {
this.style.display = 'none';
};
Please use only pure JavaScript, no jQuery or other third-party libraries.
Also, please comment on your solution's standards & cross-browser compatibility.