Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript htmlcollection

/* 
	Every function like document.getElementById() is a function of 
    htmlcollection. You can also change it or add new functions to it.
*/
// Examples 
HTMLCollection.namedItem()
HTMLCollection.item()
HTMLCollection.length
// How To Extend
HTMLCollection.prototype.class = function (value) {

};
document.getElementById("main").class();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #htmlcollection
ADD COMMENT
Topic
Name
6+4 =