Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | DOM Storage Event

  • Difficulty Level : Easy
  • Last Updated : 01 Feb, 2019

The Storage Event in HTML DOM is used to make change in the storage area in the context of another document. When there is modification in the storage area of the window, a storage event is sent to that window.


window.addEventListener("storage", script)


<!DOCTYPE html>
        HTML DOM storage Event
    <h2>HTML DOM storage Event</h2>
    <button onclick = "myGeeks()">
        Click here!
    <p id = "cont"></p>
    <!-- script of DOM storage event -->
        window.addEventListener("storage", myGeeks1);
        function myGeeks1(event) {
                    = "A Computer Science Portal";
        function myGeeks() {
            var x ="", "win", 
                    "width = 100, height = 100");

Before Click on the button:

After Click on the button:

Supported Browsers: The browser supported by DOM Storage Event property are listed below:

  • Google Chrome
  • Mozilla Firefox
  • Edge
  • Safari
  • Opera

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!