Found 8591 Articles for Front End Technology

Execute a script when the seeking attribute is set to false indicating that seeking has ended in HTML?

Chandu yadav
Updated on 03-Mar-2020 07:03:46

176 Views

The onseeked attribute executes a script when the user skips or moves to a new position in the audio or video.ExampleYou can try to run the following code to implement onseeked attribute −           Play                                    Your browser does not support the video element.                      function myFunction() {          document.getElementById("test").innerHTML = "Current position: " +          document.getElementById("myid").currentTime;          }          

Execute a script when a mouse button is released over an element in HTML?

radhakrishna
Updated on 03-Mar-2020 07:04:51

226 Views

When the mouse button is released over an element, the onmouseup event triggers. You can try to run the following code to implement onmouseup attribute −Example                    This is demo heading.             Click above and then release.                function mouseDown() {             document.getElementById("myid").style.color = "yellow";          }          function mouseUp() {             document.getElementById("myid").style.color = "blue";          }          

Execute a script when the window's history changes in HTML?

Srinivas Gorla
Updated on 30-May-2020 22:47:57

182 Views

When the window’s history change, the onpopstate event triggers. You can add it like this −Example           This is demo text    

Execute a script when the media has started playing in HTML?

Ankith Reddy
Updated on 30-May-2020 22:48:38

126 Views

Use the onplaying attribute to let users know that the audio/ video started playing.ExampleYou can try to run the following code to learn how to execute a script when the media has started playing −                                        Your browser does not support the video element.                      function display() {          alert("Video started playing!");          }          

Execute a script when the playback position of the media has changed in HTML?

Vrundesha Joshi
Updated on 24-Jun-2020 08:52:26

125 Views

The ontimeupdate attribute event triggers when the playing position of the media, for example, video, is changed. It can be fast forward, or backward in a video or audio.ExampleYou can try to run the following code implement ontimeupdate attribute −           Play                                    Your browser does not support the video element.                      function myFunction() {             document.getElementById("test").innerHTML = "Current position: " +             document.getElementById("myid").currentTime;          }          

Execute a script when the media is ready to start playing in HTML?

Sreemaha
Updated on 30-May-2020 22:50:00

159 Views

Use the oncanplay attribute to define when an audio/ video is ready to start playing.ExampleYou can try to run the following code to learn how to execute a script when the media is ready to start playing −                                        Your browser does not support the video element.                      function display() {             alert("Video loaded!");          }          

Execute a script when fetching the media data is stopped before it is completely loaded in HTML?

Abhinanda Shri
Updated on 03-Mar-2020 07:00:28

368 Views

Use the onsuspend attribute in HTML to run the script when the loading of media data suspends, for example, when download completes. It can happen in any of the following situations −When a download is paused When a download completes Media is suspended, etc.The attribute can be used with the and elements and works in all the modern web browsers such as Firefox, Chrome, Opera, Safari, etc.

How do we set text font in HTML?

Rishi Rathor
Updated on 24-Jun-2020 08:53:26

3K+ Views

The tag was used to set the font in HTML, but it is now deprecated. Use CSS for the same purpose.ExampleYou can try to run the following code to change the font of text in HTML −           Tutorialspoint       Learning videos       Learning content    

Execute a script when a Web Storage area is updated in HTML?

Ankitha Reddy
Updated on 30-Jul-2019 22:30:22

150 Views

Use the onstorage attribute in HTML to execute on Web Storage area update. You can try to run the following code to implement onstorage attribute − Example HTML onstorage Welcome Demo text

How to include groups of table columns in HTML?

varma
Updated on 30-May-2020 22:13:25

1K+ Views

Use the tag to include groups of table columns.The HTML tag is used for specifying properties for a group of columns within a table. If you need to apply different properties to a column within a colgroup, you can use the HTML col tag within the colgroup tag.The following are the attributes −AttributeValueDescriptionAlignrightleftcenterjustifycharDefines horizontal alignment, not supported in Html5.CharcharacterDefines a character to use to align text on (use with align ="char"), not supported in Html5.CharoffpixelDefines the number of columns the should span, not supported in Html5SpannumberDefines the number of columns the should span, not supported in ... Read More

Advertisements