
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 2202 Articles for HTML

134 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

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

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

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

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

83 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."); }