Front End Technology Articles

Page 568 of 652

Get the HTTP header for the information of the content attribute in HTML

seetha
seetha
Updated on 03-Mar-2020 336 Views

Use the http-equiv attribute to get the HTTP header for the information of the content attribute in HTML.ExampleYou can try to run the following code to implement http-equiv attribute −           HTML http-equiv attribute                                 Document content goes here    

Read More

Set the language of the linked document in HTML

Rishi Rathor
Rishi Rathor
Updated on 03-Mar-2020 168 Views

Use the hreflang attribute to set the language of the linked document in HTML.ExampleYou can try to run the following code to implement the hreflang attribute −           HTML hreflang attribute               Database Tutorial:       DBMS    

Read More

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

Abhinanda Shri
Abhinanda Shri
Updated on 03-Mar-2020 614 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          

Read More

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

Nancy Den
Nancy Den
Updated on 03-Mar-2020 188 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....                                                                              

Read More

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

Abhinaya
Abhinaya
Updated on 03-Mar-2020 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!";          }          

Read More

Execute a script after the document is printed in HTML?

mkotla
mkotla
Updated on 03-Mar-2020 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!");          }          

Read More

Set the text wrap in a form in HTML

Nikitha N
Nikitha N
Updated on 03-Mar-2020 841 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                    

Read More

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

Prabhas
Prabhas
Updated on 03-Mar-2020 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.");          }          

Read More

Execute a script when the document is about to be unloaded in HTML?

Nishtha Thakur
Nishtha Thakur
Updated on 03-Mar-2020 190 Views

The onbeforeunload event attribute’ fires when the document is ready to be unloaded.ExampleYou can try to run the following code to implement the onbeforeunload attribute −           Close this window or press F5.                function display() {             return "Wanna stay here or leave?";          }          

Read More

Set the language of the track text data in HTML

Abhinanda Shri
Abhinanda Shri
Updated on 03-Mar-2020 187 Views

Use the srclang attribute to set the language of the track text data in HTML. For subtitles, use this attribute.ExampleYou can try to run the following code to implement srlang attribute −                                                            Your browser does not support the video element.          

Read More
Showing 5671–5680 of 6,517 articles
« Prev 1 566 567 568 569 570 652 Next »
Advertisements