Skip to content

Tag Archives: HTML-DOM

The isSecureContext property returns a boolean indicating whether the current context is secure or not. It is a read-only property. Syntax: var Secure = self.isSecureContext;… Read More
The DOMImplementation createHTMLDocument() method is used to create a new HTML Document. Syntax: newDoc = document.implementation.createHTMLDocument(title); Parameters: title (Optional): It is a DOMString containing the… Read More
The visualViewport property of the Window interface returns a VisualViewport object representing the visual viewport for the current window. This is a read-only property. Syntax:… Read More
The NodeIterator.nextNode() method sets the NodeIterator to next node in the document and returns the nextNode. The first call of the nextNode() returns the first… Read More
The forEach() method of the NodeList interface calls the callback given in parameter once for each value pair in the list, in insertion order. Syntax:… Read More
The NodeList keys() method returns an iterator allowing you to go through all keys contained in this object. The keys are unsigned integers. Syntax: NodeList.keys();… Read More
The NodeList entries() method returns an iterator allowing you to go through all key/value pairs contained in the NodeList object. The values are Node objects.… Read More
The scrollX property of the Window interface returns the number of pixels that the document is currently scrolled horizontally in the current window. This value… Read More
The speechSynthesis property returns a SpeechSynthesis object, which is the entry point into using Web Speech API speech synthesis functionality and can be further used.… Read More
The DOMImplementation createDocumentType() method returns a Doctype object which can either be used with DOMImplementation createDocument() method for document creation or can be put into… Read More
The NodeIterator.previousNode() method sets the NodeIterator to the previous node in the document and returns the previous node. This method returns null when there are… Read More
The NodeList values() method returns an iterator allowing you to go through all values contained in the NodeList object. The values are Node objects. Syntax:… Read More
The createNodeIterator() Method is used to create a node iterator and hence using that node iterator we can iterate over nodes. Syntax: const nodeIterator =… Read More
The DOMImplementation createDocument() method is used to create and return a Document. Syntax: var doc = document.implementation.createDocument(namespaceURI, qualifiedNameStr, docType); parameters: namespaceURI: It is a DOMString… Read More
The performance property returns a Performance object, which can be further used to gather performance information about the current document. Syntax: var per = window.performance… Read More