AmitDiwan has Published 10740 Articles

HTML DOM Storage setItem() method

AmitDiwan

AmitDiwan

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

163 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

251 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

170 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

204 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

168 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

267 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

143 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

149 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

237 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

HTML DOM Video playbackRate Property

AmitDiwan

AmitDiwan

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

178 Views

The HTML DOM Video playbackRate property returns/sets a number corrosponding to current playback rate of media.SyntaxFollowing is the syntax −Returning playbackRate as a numbermediaObject.playbackRateSetting playbackRate to a numbermediaObject.playbackRate = numberNOTE − Number has a max value of ‘16’ and if ‘0.0’ video is still.Let us see an example of Video ... Read More

Advertisements