AmitDiwan has Published 11367 Articles

HTML DOM Fieldset form property

AmitDiwan

AmitDiwan

Updated on 19-Aug-2019 06:57:00

106 Views

The HTML DOM Fieldset form property returns the form reference of the type form object. This is for the element that is present inside that given form. It is a read-only property. If the specified fieldset isn’t present inside the form then null is returnedSyntaxFollowing is the syntax for ... Read More

HTML DOM exitFullscreen() method

AmitDiwan

AmitDiwan

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

29 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

29 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

58 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 createAttribute() method

AmitDiwan

AmitDiwan

Updated on 13-Aug-2019 08:51:25

173 Views

The HTML DOM createAttribute() method is used for creating a specific attribute using JavaScript for an HTML element. The createAttribute() method creates an attribute with the given name and returns the attribute as an Attr object.SyntaxFollowing is the syntax for createAttribute() method −document.createAttribute(attributename)ExampleLet us look at an example for the ... Read More

HTML DOM cookie property

AmitDiwan

AmitDiwan

Updated on 13-Aug-2019 08:48:41

206 Views

The HTML DOM cookie property is used for creating, reading and deleting cookies.The cookies are used by website to keep track of user specific information . This method has return type of string containing semi-colon separated list of all the cookies. The cookies are in the key=value pairs format. Cookies ... Read More

HTML DOM console.timeEnd() Method

AmitDiwan

AmitDiwan

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

24 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

228 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 head property

AmitDiwan

AmitDiwan

Updated on 09-Aug-2019 09:06:49

181 Views

The HTML DOM head property is associated with the HTML element. It is used for returning the element. If there are multiple head elements then it will return the first head element. It is a read-only property.SyntaxFollowing is the syntax for the head property −document.headExampleLet us look at ... Read More

HTML DOM hasAttributes() method

AmitDiwan

AmitDiwan

Updated on 09-Aug-2019 08:37:34

34 Views

The HTML DOM hasAttributes() method checks if an element has any attributes or not. It returns true if the element does contain any attribute and returns false if it doesn’t. If this method is called on any other node than the element node, the returned value will always be false.SyntaxFollowing ... Read More

Advertisements