AmitDiwan has Published 11367 Articles

HTML DOM getElementsByClassName() method

AmitDiwan

AmitDiwan

Updated on 09-Aug-2019 08:20:32

260 Views

The HTML DOM getElementsByClassName() method is used for getting the collection of all the elements in the document having a given class name. It returns all the given elements as a NodeList object. You can access any element in the returned object using the index number. This method can be ... Read More

HTML DOM getAttributeNode() method

AmitDiwan

AmitDiwan

Updated on 09-Aug-2019 08:09:00

44 Views

The HTML DOM getAttributeNode() is used for returning the a given element attribute node as an Attr object. Using the various Attr object properties and methods, you can manipulate the attributes.SyntaxFollowing is the syntax for getAttributeNode() method −element.getAttributeNode(attributename)Here, the attributename is a mandatory parameter of type string that specifies the ... Read More

HTML DOM embed object

AmitDiwan

AmitDiwan

Updated on 08-Aug-2019 14:27:27

229 Views

The HTML DOM embed object is associated with the HTML element.The element can be used to embed various external applications like audio, video etc.PropertiesFollowing are the properties for the HTML DOM embed object −PropertyDescriptionHeightTo set or return the embed element height attribute value.SrcTo set or return the src ... Read More

HTML DOM domain Property

AmitDiwan

AmitDiwan

Updated on 08-Aug-2019 14:14:02

92 Views

The HTML DOM domain property is used for getting the domain name of the server on which the document is being currently executing. It returns domain name in the form of string and the value can be null if the domain is not identified.SyntaxFollowing is the syntax for domain property ... Read More

HTML DOM createTextNode() Method

AmitDiwan

AmitDiwan

Updated on 08-Aug-2019 13:36:49

244 Views

The HTML DOM createTextNode() method is used to create a Text Node with the specified text.ExampleLet us look at an example for the createTextNode() method − createTextNode() example Click the below button to create a p element with some text. CREATE    function createText() {     ... Read More

HTML DOM createComment() method

AmitDiwan

AmitDiwan

Updated on 08-Aug-2019 13:08:34

200 Views

The HTML DOM createComment() method is used for creating a comment node with the given text. It takes the comment to be created as a parameter. Since comments are not visible you have to inspect the HTML document after executing this method to see the comment created.SyntaxFollowing is the syntax ... Read More

HTML DOM console.warn() Method

AmitDiwan

AmitDiwan

Updated on 08-Aug-2019 12:45:57

128 Views

The HTML DOM console.warn() method is used to display a warning message in the console. In some browsers there is a small exclamation mark in console log for these warnings The console.warn() method will not interrupt your code execution. Developers can use the console.warn() method to give warnings to the ... Read More

HTML DOM console.table() Method

AmitDiwan

AmitDiwan

Updated on 08-Aug-2019 12:27:07

145 Views

The HTML DOM console.table() method is used to display data in a well organized tabular format. This method can be used to visualize complex arrays or objects. The table is organized in such a way that each element in the array will be a row in the table. It takes ... Read More

HTML DOM console.log() Method

AmitDiwan

AmitDiwan

Updated on 08-Aug-2019 12:23:54

4K+ Views

The HTML DOM console.log() method is used for writing a message to the console. The console is used for debugging and testing purposes mainly. The message can be a string type or an object type.SyntaxFollowing is the syntax for the console.log method −onsole.log(msg)Here, msg can be a string, array or ... Read More

HTML DOM console.groupEnd() Method

AmitDiwan

AmitDiwan

Updated on 08-Aug-2019 12:13:03

36 Views

The HTML DOM console.groupEnd() method is used for indicating the end of a message group. It exits the current message group in the console.SyntaxFollwing is the syntax for console.groupEnd() method −console.groupEnd()ExampleLet us see an example for the HTML DOM console.groupEnd() method − console.groupEnd() Method Press F12 key to ... Read More

Advertisements