Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Front End Technology Articles
Page 570 of 652
Execute a script when the length of the media changes in HTML?
The ondurationchange attribute triggers when the length of the audio/ video changes in HTML.ExampleYou can try to run the following code to implement ondurationchange attribute − Your browser does not support the video element. function display(vLength) { alert("Video Length: " + vLength.duration + " seconds"); }
Read MoreExecute a script when the cue changes in a <track> element in HTML?
When the cue changes, the oncuechange attribute triggers in HTML. It works with the element. Your browser does not support the video element.
Read MoreHow do we create the title of the text track in HTML?
Use the label attribute in HTML to create the title of the text track in HTML.ExampleYou can try to run the following code to implement the label attribute − Your browser does not support the video element.
Read MoreHow to specify the kind of text track in HTML?
Use the kind attribute in HTML to specify the kind of text track in HTML. For example, you can set the kind as subtitles for subtitle files.ExampleYou can try to run the following code to implement the kind attribute − Your browser does not support the video element.
Read MoreHow to set the range that is considered to be of high value in HTML?
Use the high attribute in HTML to set the range that is considered to be of high value in HTML.ExampleYou can try to run the following code to implement the high attribute − Water Level:
Read MoreExecute a script when the file is unavailable in HTML?
Use the onemptied attribute in HTML to execute a script when the file is unavailable in HTML or it is empty.ExampleYou can try to run the following code to implement the onemptied attribute − Your browser does not support the video element. function display() { alert ("Sorry! Empty playlist!"); }
Read MoreExecute a script at the start of a drag operation in HTML?
Use the ondragstart attribute in HTML to execute a script at the start of a drag operation in HTML.ExampleYou can try to run the following code to implement the ondragstart attribute − drag { float: left; width: 100px; height: 35px; border: 2px dashed #876587; margin: 15px; padding: 10px; } ...
Read MoreExecute a script when the media has reached the end of HTML?
Use the onended attribute in HTML to execute a script when the media has reached the end in HTML . You can add messages like “Thank you for watching”, “Stay tuned!”, etc.ExampleYou can try to run the following code to implement the onended attribute − Your browser does not support the video element. function display() { alert ("Thank you for watching! Stay tuned!"); }
Read MoreHow to specify the URL of the resource to be used by the object in HTML?
Use the data attribute in HTML to specify the URL of the resource to be used by the object in HTML.ExampleYou can try to run the following code to implement the data attribute − Demonstration
Read MoreHow to include the audio/video controls in HTML?
Use the controls attribute in HTML to include audio/ video controls in HTML.ExampleYou can try to run the following code to implement the controls attribute − HTML video Tag Online Compiler This browser doesn't support video tag.
Read More