HTML onstorage attribute: The HTML onstorage attribute is triggered when the browser’s local storage area is updated.
HTML onstorage attribute
This attribute is part of the event attribute and supports the <body> element.
Browser Support
This attribute was supported by different browsers.
- Chrome
- Firefox
- InternetExplorer
- Safari
- Opera
Example:
<body onstorage="onstorageFunction()"> <p>some text</p> </body>