Front End Technology Articles

Page 570 of 652

Execute a script when the length of the media changes in HTML?

Nikitha N
Nikitha N
Updated on 03-Mar-2020 275 Views

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 More

Execute a script when the cue changes in a <track> element in HTML?

Chandu yadav
Chandu yadav
Updated on 03-Mar-2020 167 Views

When the cue changes, the oncuechange attribute triggers in HTML. It works with the element.              Your browser does not support the video element.          

Read More

How do we create the title of the text track in HTML?

Anvi Jain
Anvi Jain
Updated on 03-Mar-2020 187 Views

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 More

How to specify the kind of text track in HTML?

Srinivas Gorla
Srinivas Gorla
Updated on 03-Mar-2020 185 Views

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 More

How to set the range that is considered to be of high value in HTML?

Ankith Reddy
Ankith Reddy
Updated on 03-Mar-2020 142 Views

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 More

Execute a script when the file is unavailable in HTML?

Arjun Thakur
Arjun Thakur
Updated on 03-Mar-2020 238 Views

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 More

Execute a script at the start of a drag operation in HTML?

Chandu yadav
Chandu yadav
Updated on 03-Mar-2020 143 Views

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 More

Execute a script when the media has reached the end of HTML?

Giri Raju
Giri Raju
Updated on 03-Mar-2020 157 Views

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 More

How to specify the URL of the resource to be used by the object in HTML?

Sreemaha
Sreemaha
Updated on 03-Mar-2020 187 Views

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 More

How to include the audio/video controls in HTML?

Nancy Den
Nancy Den
Updated on 03-Mar-2020 507 Views

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
Showing 5691–5700 of 6,517 articles
« Prev 1 568 569 570 571 572 652 Next »
Advertisements