Skip to content

Tag Archives: HTML-Methods

Prerequisite: AudioContext baseLatency Property The HTML AudioContext.createMediaStreamTrackSource() is used to create an instance of MediaStreamAudioSourceNode object which can be used by the user to manipulate… Read More
The customElements define() method is used to define a new custom element. There are two types of custom elements that can be created: Autonomous custom… Read More
The customElements upgrade() method upgrades all shadow-containing custom elements of the document in a node subtree, even before they are connected to the main document.… Read More
The queryCommandSupported() method checks whether the specified editor command is supported by the browser or not. Syntax: check = document.queryCommandSupported(command); Parameters: This method accept single… Read More
The insertNode() method inserts a node at the start of the Range. The updated Range consists of new inserted node before the Range of the… Read More
The setEnd() method is used to set the ending position of a Range. The endNode can be used as a text node, child nodes etc.… Read More
The cloneRange() method is used to make a clone of original range and returns that cloned Range object it into a new variable. Note: Change… Read More
The deleteContents() method deletes all the contents of the Range from the Document tree. Syntax: range.deleteContents() Parameters: This method does not accept any parameters. Return… Read More
The extractContents() method moves the contents of the Range from the document tree into a document object variable. The contents of the Range gets removed… Read More
The Range toString() method is used to convert range to String text. The selected Range is an object which need to be converted to text… Read More
The HTML DOM Range setStartBefore() method is used to set the starting position of a Range. An element that is used to set the starting… Read More
The ParentNode.append() method is used to insert Node objects or DOMString objects after the last child of the ParentNode. DOMString objects are inserted as Text… Read More
The setStart() method is used to set the starting position of a Range. The startNode can be used as a text node, child nodes etc.… Read More
The Range setEndAfter() method is used to set the end position of a Range relative to another Node. An element used to set the ending… Read More
The toggleAttribute() method of the element interface toggles a Boolean attribute on the given element. Attributes of an element can be changed using this method.… Read More

Start Your Coding Journey Now!