
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 10483 Articles for Web Development

140 Views
The onwheel attribute triggers when the mouse wheel rolls up or down over an element. You can try to run the following code to implement onwheel attribute −Example This is demo heading. Click above and use mouse wheel to change the heading color. function mouseWheel() { document.getElementById("myid").style.color = "red"; }

218 Views
When the web browser starts to work offline, the onoffline attribute triggers. You can try to run the following code to implement onoffline attribute −Example function onlineFunc() { alert ("Working online!"); } function offlineFunc() { alert ("Workinf offline!"); } Got o the web browser menu bar and click the File menu. Select "Work Offline" and toggle between online and offline.

146 Views
When the mouse pointer is moving over an element, the onmousemove attribute triggers. You can try to the following code to implement onmousemove attribute −Example This is demo heading. Click above and then release. function mouseMove() { document.getElementById("myid").style.color = "red"; }

127 Views
When the web browser starts to work online, the ononline attribute triggers. You can try to run the following code to implement ononline attribute −Example function onlineFunc() { alert ("Working online!"); } function offlineFunc() { alert ("Workinf offline!"); } Got o the web browser menu bar and click the File menu. Select "Work Offline" and toggle between online and offline.

135 Views
When the mouse pointer moves out of an element, the onmouseout attribute triggers. You can try the following code to implement onmouseout attribute −Example This is demo heading. Click above and then release. function mouseOut() { document.getElementById("myid").style.color = "red"; }

347 Views
When a mouse wheel is being scrolled over an element, the onwheel attribute triggers.ExampleYou can try to run the following code to execute a script when a mouse wheel is being scrolled over an element in HTML − This is demo text. Roll the mouse wheel here. function display() { alert("Mouse Wheel used!"); }

690 Views
Use the tag to add a single-line input field. The HTML tag is used for querying a document through a text field. The tag can be used anywhere but head tag is preferable. Note: It is a deprecated tag and should not be used.The following are the attributes −AttributeValueDescriptionPromptstringLabel for the text fieldActionURLused when a query needs to be sent to a different URLExampleTry the following code − HTML isindex Tag