Found 2418 Articles for HTML

Execute a script when the browser is in the process of getting the media data in HTML?

radhakrishna
Updated on 03-Mar-2020 12:33:46

67 Views

Use the onprogress attribute to execute a script when the browser is in the process of getting the media data in HTML.ExampleYou can try to run the following code to implement onprogress attribute −                                        Your browser does not support HTML5 video.                      function display() {             alert("Started");          }          

Execute a script after the document is printed in HTML?

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

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

How to specify an image as a client-side image-map in HTML?

Daniol Thomas
Updated on 03-Mar-2020 12:26:12

487 Views

Use the usemap attribute to specify an image as a client-side image-map in HTML. You can try to run the following code to implement usemap attribute −Example           HTML map Tag                                              

Set the text wrap in a form in HTML

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

695 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

2K+ 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

60 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

120 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

How to specify whether the content of an element should be translated or not in HTML?

Krantik Chavan
Updated on 01-Jun-2020 09:25:06

86 Views

The translate attribute is useful to set that the content of an element is to be translated or not.The following are the attributes −AttributeValueDescriptionYesThe content should be translated.NoThe content should not be translated.If you did not want a specific word to be translated, then add it to the translate attribute −This won’t get translated.

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

278 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

How do we specify the target for where to open the linked document in HTML?

vanithasree
Updated on 01-Jun-2020 09:26:06

111 Views

Use the target attribute to specify the target for where to open the linked document in HTML. Here are the values of the target attribute −AttributeDescription_blankOpens the linked page in a new tab.selfOpens the linked page in the current tab.parentOpens the linked page in a parent frame.topOpens the linked page in the topmost frame.ExampleYou can try to run the following code to implement target attribute −           HTML target attribute               References       Refer the following website.          The above link will open in a new tab.    

Advertisements