Skip to content

Tag Archives: HTML-DOM

The getElementsByName() method returns collection of all elements of particular document by name. This collection is called node list and each element of the node… Read More
The getElementById() method returns the elements that has given ID which is passed to the function. This function is widely used in web designing to… Read More
The getElementsByClassName() method returns an object containing all the elements with the specified class names in the document as objects. Each element in the returned… Read More
The DOM forms collection is used to return the collection of all <form> elements in a HTML document. The form elements are sorted as they… Read More
The DOM defaultView property in HTML is used to return the document Window Object. The window object is the open windows in the browser. Syntax:… Read More
The DOM referrer property in HTML is used to return the URI of the page that linked to the current page. If the user navigates… Read More
The DOM getNamedItem() method in HTML is used to return the attribute node from the NamedNodeMap object. Syntax: namednodemap.getNamedItem( nodename ) Parameter’s Value: This method… Read More
The createEvent() method in HTML creates an event object of the specified type. The created event must be initialized before use. Syntax: document.createEvent( event_type )… Read More
The getElementsByTagName() method in HTML returns the collection of all the elements in the document with the given tag name. To extract any info just… Read More
The DOM length property in HTML is used to get the number of items in a NodeList object. A NodeList is a collection of child… Read More
The DOM value property in HTML is used to set or return the value of any attribute. Syntax: It returns the attribute value. attribute.value It… Read More
The normalize() method in HTML is used to merge the adjacent text nodes with the first text node and flushes out the empty nodes. The… Read More
The DOM links collection is used to return the collection of all <a> and <area> elements with “href” attribute in a HTML document. The elements… Read More
The DOM Open() method in HTML is the combination of the following three steps: Opens an output stream to collect the output. Collects output from… Read More
The DOM designMode property in HTML is used to specify whether the document is editable or not. It can also be used to set the… Read More