
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
Execute Script When Web Storage Area is Updated in HTML
Use the onstorage attribute in HTML to execute on Web Storage area update. You can try to run the following code to implement onstorage attribute −
Example
<!doctype html> <html> <head><title>HTML onstorage</title> </head> <body> <h2>Welcome</h2> <body onstorage = "javascript:alert('Your learning journey!');"> Demo text</body> </body> </html>
Advertisements