Skip to content

Tag Archives: HTML-DOM

The DOM Style borderCollapse property in HTML is used to set or returns the border of the table collapsed into a single border or not.… Read More
The DOM style borderBottom property is used to set or returns the three different border-bottom property such as border-bottom-width, border-bottom-style and border-bottom-color of an element.… Read More
The DOM style color property is used to set or return the color of the text. Syntax: It is used to set the color property.… Read More
Almost every website store cookies(small text files) on the user’s computer for recognition and to keep a track of his preferences. DOM cookie property sets… Read More
The isId Property contains a boolean value which returns a true if the Element has an attribute type of ID, otherwise, it returns a false… Read More
In HTML document, the document.createElement() is a method used to create the HTML element. The element specified using elementName is created or an unknown HTML… Read More
In HTML document, the document.hasfocus() the method is used for indicating whether an element or document has the focus or not. The function returns a… Read More
The removeNamedItem() method in HTML is used to remove the node with the specified name in a namednode object. Syntax: namednode.removeNamedItem( nodename ) Parameter: The… Read More
The domain Property is used to return the domain name of the website server that is loaded or running in the current document. Syntax: document.domain… Read More
The querySelectorAll() method in HTML is used to return a collection of an element’s child elements that match a specified CSS selector(s), as a static… Read More
The querySelector() method in HTML is used to return the first element that matches a specified CSS selector(s) in the document.Note: The querySelector() method only… Read More
The DOM name Property is used to return the name of the attribute. It is used for read-only. Syntax: attribute.name Return Value:This property returns a… Read More
The backgroundColor property in HTML DOM is used to set or return the background-color of an element. Syntax: object.style.backgroundColor It returns the background color of… Read More
The DOM lastModified property in HTML is used to return the date and time of the current document that was last modified. This property is… Read More
The write() method in HTML is used to write some content or JavaScript code in a Document. This method is mostly used for testing purpose.… Read More