Execute Script When Cue Changes in Track Element in HTML

Chandu yadav
Updated on 03-Mar-2020 10:02:12

146 Views

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

Create Title of Text Track in HTML

Anvi Jain
Updated on 03-Mar-2020 09:59:51

165 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.          

Specify Kind of Text Track in HTML

Srinivas Gorla
Updated on 03-Mar-2020 09:59:14

155 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.          

Set an Image as a Server-Side Image Map in HTML

George John
Updated on 03-Mar-2020 09:58:38

757 Views

Use the ismap attribute in HTML to set the image as a server-side image map in HTML.ExampleYou can try to run the following code to implement the ismap attribute −                                 On clicking the coordinates is sent to the server as a URL query string.    

Set High-Value Range in HTML

Ankith Reddy
Updated on 03-Mar-2020 09:56:18

107 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:                    

Execute a Script When the File is Unavailable in HTML

Arjun Thakur
Updated on 03-Mar-2020 09:51:09

206 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!");          }          

Execute Script When Element is Dragged in HTML

Prabhas
Updated on 03-Mar-2020 09:50:12

172 Views

Use the ondragover attribute in HTML to execute a script when the element is being dragged in HTML.ExampleYou can try to run the following code to implement the ondragover attribute −                    .drag {             float  : left;             width  : 100px;             height : 35px;             border : 2px dashed #876587;             margin : 15px;             padding: 10px;       ... Read More

Execute a Script at the Start of a Drag Operation in HTML

Chandu yadav
Updated on 03-Mar-2020 09:44:59

111 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 Media Reaches the End in HTML

Giri Raju
Updated on 03-Mar-2020 09:43:24

126 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!");          }          

Execute a Script When Dragging Over a Valid Drop Target in HTML

Rishi Rathor
Updated on 03-Mar-2020 09:41:42

142 Views

When an element is being dragged and dropped in HTML, the ondragover attribute fires.ExampleYou can try to run the following code to implement the ondragover attribute −                    .drag {             float: left;             width: 100px;             height: 35px;             border: 2px dashed #876587;             margin: 15px;             padding: 10px;          }         ... Read More

Advertisements