AmitDiwan has Published 10744 Articles

HTML DOM Storage length property

AmitDiwan

AmitDiwan

Updated on 19-Feb-2021 05:18:43

166 Views

The HTML DOM Storage length property is used for getting the number of items that are present inside the browser’s storage object. The storage object can be a localStorage object or a sessionStorage object.SyntaxFollowing is the syntax for −Storage length property using localStorage object −localStorage.length;Storage length property using sessionStorage objectsessionStorage.length;ExampleLet ... Read More

HTML DOM Storage setItem() method

AmitDiwan

AmitDiwan

Updated on 19-Feb-2021 05:16:28

129 Views

The HTML DOM Storage setItem() method is used for removing a storage object item by passing a given key name.SyntaxFollowing is the syntax for Storage removeItem() method −localStorage.removeItem(keyname, value);ORsessionStorage.removeItem(keyname, value );Here, keyname is of type string and represents the key name used for getting the value. The second parameter value ... Read More

HTML DOM Strong object

AmitDiwan

AmitDiwan

Updated on 19-Feb-2021 05:14:51

228 Views

The HTML DOM Strong object is associated with the HTML element. The strong tag is used for strong emphasis and makes the text bold. We can create and access strong element using the createElement() and getElementById() method respectively.SyntaxFollowing is the syntax for −Creating a strong object −Var s= document.createElement("STRONG");ExampleLet ... Read More

HTML DOM fullscreenElement property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 09:18:18

148 Views

The HTML DOM fullscreenElement property is used for returning the element that is currently displayed in full screen mode. It will return null if the given element in not in fullscreen.SyntaxFollowing is the syntax for fullscreenElement property −document.fullscreenElementLet us look at an example of the fullscreenElement property −Note − This ... Read More

HTML DOM Video load( ) Method

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 05:34:41

177 Views

The HTML DOM Video load() is used for re-rendering of video element after its certain attributes get updated by user such as ‘src’.SyntaxFollowing is the syntax −videoObject.load()Let us see an example of Video load() property −ExampleLive Demo HTML DOM Video load()    * {       ... Read More

HTML DOM Video loop Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 05:33:23

134 Views

The HTML DOM Video loop property returns/sets boolean value corresponding to whether the video will play again automatically on end or not.SyntaxFollowing is the syntax −Returning boolean value - true/falsemediaObject.loopSetting loop to booleanValuemediaObject.loop = booleanValueHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that video willautomatically play again on endfalseIt defines ... Read More

HTML DOM Video muted Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 05:31:47

235 Views

The HTML DOM Video muted property returns/sets boolean value corresponding to whether the video’s audio will be on mute or not.syntaxFollowing is the syntax −Returning boolean value - true/falsemediaObject.mutedSetting muted to booleanValuemediaObject.muted = booleanValueHere, “booleanValue” can be the following −booleanValueDetailstrueIt defines that video willhave its audio on mutefalseIt defines that ... Read More

HTML DOM Video networkState Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 05:30:32

122 Views

The HTML DOM Video networkState property returns a number corresponding to the network state of the video.SyntaxFollowing is the syntax −Returning number valuemediaObject.networkStateHere, the return value can be the following −0 (NETWORK_EMPTY) depicts media has not yet been initialized1 (NETWORK_IDLE) depicts media is active and has selected a resource, but ... Read More

HTML DOM Video paused Property

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 05:26:35

128 Views

The HTML DOM Video paused property returns a boolean (true/false) corresponding to whether the video is playing or not.SyntaxFollowing is the syntax −Returning boolean valuemediaObject.pausedLet us see an example of HTML DOM Video paused property −ExampleLive Demo HTML DOM Video paused    * {       ... Read More

HTML DOM Video play( ) Method

AmitDiwan

AmitDiwan

Updated on 18-Feb-2021 05:25:22

209 Views

The HTML DOM Video play() is used for playing the current media content and to stopping media use pause().SyntaxFollowing is the syntax −videoObject.play()Let us see an example of Video play() property −ExampleLive Demo HTML DOM Video play()    * {       padding: 2px;     ... Read More

Advertisements