Sự kiện lưu trữ DOM HTML
❮ Sự kiện DOM ❮ Đối tượng sự kiện
Đối tượng StorageEvent
Đối tượng StorageEvent xử lý các sự kiện xảy ra khi có thay đổi trong vùng lưu trữ của cửa sổ.
Sự kiện lưu trữ
Event | Occurs When |
---|---|
storage | A Web Storage area is updated |
Thuộc tính sự kiện lưu trữ
Property | Returns |
---|---|
key | The key of the storage item |
newValue | The new value of the storage item |
oldValue | The old value of the storage item |
storageArea | The affected storage object |
url | The URL of the changed item's document |
Thuộc tính và phương thức kế thừa
StorageEvent kế thừa tất cả các thuộc tính và phương thức từ: