HTML Articles - Page 113 of 151

Execute a script each time the playback rate changes in HTML?

vanithasree
Updated on 24-Jun-2020 12:15:10

168 Views

Use the onratechange attribute to execute a script each time the playback rate changes in HTML in HTML.ExampleYou can try to run the following code to implement onratechange attribute − Live Demo                                        Your browser does not support the video element.             Change the speed of the video                      function display() {             document.getElementById("test").innerHTML = "Speed: " + document.getElementById("myid").playbackRate;          }          function update(ob) {             document.getElementById("myid").playbackRate = ob.value;          }           Output

How to specify the URL of the page the link goes to in HTML?

Abhinanda Shri
Updated on 03-Mar-2020 12:34:30

609 Views

Use the href attribute to specify the URL of the page the link goes to in HTML.ExampleYou can try to run the following code to implement href attribute −           HTML href attribute                        Tutorials Point Library of Tutorials          

Execute a script when the element is being clicked in HTML?

Abhinaya
Updated on 03-Mar-2020 12:32:25

2K+ Views

Use the onclick attribute to execute a script when the element is clicked in HTML.ExampleYou can try to run the following code to implement onclick attribute −           Click                      function display() {             document.getElementById("test").innerHTML = "You clicked the button!";          }          

Execute a script when a context menu is triggered in HTML5?

Nancy Den
Updated on 03-Mar-2020 12:33:09

187 Views

Use the contextmenu attribute in HTML5 to execute a script when a context menu is fied. A context menu generates when a user right-clicks. ExampleYou can try to run the following code to implement contextmenu attribute −           HTML menuitem Tag                        Right click inside here....                                                                              

Mobile

Execute a script after the document is printed in HTML?

mkotla
Updated on 03-Mar-2020 12:31:48

294 Views

Use the HTML onafterprint attribute to execute a script after the document is printed or it is printing.ExampleYou can try to run the following code to implement onafterprint attribute −                    function display() {             alert("Success!");          }          

Set the text wrap in a form in HTML

Nikitha N
Updated on 03-Mar-2020 12:27:38

840 Views

Use the wrap attribute to set the text wrap in HTML. You can try to run the following code to implement wrap attribute −Example                              This is demo text This is demo text This is demo text This is demo text                    

How to add the value of the element in HTML?

Yaswanth Varma
Updated on 16-Dec-2022 10:39:04

3K+ Views

This article will teach you how to add the value of the element in HTML. We have a basic idea about the value attribute in HTML and the situations where we use the value attribute Let’s look forward to a better understanding of the HTML value attribute. In HTML, the value property is used to describe the value of the element that it is used with. For various HTML components, it has a varied meaning. Usage− It can be put to use with the , , , , , , and , elements. − When the value attribute is ... Read More

Execute a script when a file can be played all the way to the end without pausing for buffering in HTML?

Prabhas
Updated on 03-Mar-2020 12:25:33

110 Views

Use the oncanplaythrough attribute to execute a script when a file can be played all the way to the end without pausing for buffering in HTML.ExampleYou can try to run the following code to implement oncanplaythrough attribute −                                        Your browser does not support the video element.                      function display() {             alert("Can be played without pausing for buffering.");          }          

How do we set the type of element in HTML?

Yaswanth Varma
Updated on 16-Dec-2022 10:37:00

284 Views

In this article, we are going to learn about how do we set the type of element in HTML as we are familiar with type in HTML. For elements, the HTML type Attribute is used to define the type of button. The type of input to display is also specified using it in the element. The Internet Media Type is used for embed elements including link, object, script, source, and style. Let’s dive one by one into the examples. The type attribute can be used to the following elements Element Attribute type ... Read More

Execute a script when there have been changes to the anchor part of the URL in HTML?

Yaswanth Varma
Updated on 16-Dec-2022 10:32:12

498 Views

In this article we are going to learn about execute a script when there have been changes to the anchor part of the URL in HTML. The onhashchange attribute in HTML definition states that it activates once the anchor portion of the current URL has changed. The present URL's '#' sign introduces the anchor portion. A single value script for this attribute executes when the onhashchange event attribute is activated. This attribute only applies to the tag. Let’s dive into the following examples to understand more about executing a script when there have been changes to the anchor part ... Read More

Advertisements