AmitDiwan has Published 10740 Articles

HTML DOM exitFullscreen() method

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 06:42:46

77 Views

The HTML DOM exitFullscreen() method is used for getting an element currently in the full screen mode to get out of that mode. It does nothing if executed on an element that isn’t in the full screen mode already.SyntaxFollowing is the syntax for exitFullscreen() method −HTMLElementObject.exitFullscreen()ExampleLet us look at an ... Read More

HTML DOM console.time() Method

AmitDiwan

AmitDiwan

Updated on 13-Aug-2019 09:08:40

100 Views

The HTML DOM console.time() method is used for displaying the time elapsed in executing a piece of code. This helps us in analyzing the entire code or specific bits of our code. By timing your code you can make it more efficient. Using the optional label parameter you can create ... Read More

HTML DOM console.group() Method

AmitDiwan

AmitDiwan

Updated on 13-Aug-2019 09:03:19

170 Views

The HTML DOM console.group() method is used to indicate the start of message group and all messages written after this method will be written inside the message group. This allows making one group for all messages or several groups using the label parameter.SyntaxFollowing is the syntax for the console.group() method ... Read More

HTML DOM console.timeEnd() Method

AmitDiwan

AmitDiwan

Updated on 13-Aug-2019 08:45:10

114 Views

The console.timeEnd() method is used for stopping the timer and displaying the time elapsed while the code inside the console.time() and console.timeEnd() took to finish execution. It is useful for timing sections of your code to figure out where the bottlenecks are. Using the optional label parameter we can specify ... Read More

HTML DOM Input Password autofocus Property

AmitDiwan

AmitDiwan

Updated on 09-Aug-2019 10:40:30

364 Views

The HTML DOM input Password autofocus property is associated with the HTML element’s autofocus attribute. This property is used for setting or returning if the input password field should be automatically focused when the page loads or not.SyntaxFollowing is the syntax to −Set the autofocus property −passwordObject.autofocus = true|falseHere, ... Read More

HTML DOM embed object

AmitDiwan

AmitDiwan

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

319 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 console.warn() Method

AmitDiwan

AmitDiwan

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

216 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

272 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

139 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