I\'m using Safari webkit\'s engine together with HTML5 and JS to create an offline application now I\'m using the sessionStorage
array to store status of my app
To communicate between multiple tabs we can use storage event. You store a data item in local storage and you will get to know that your local storage is updated.
Check out the code.
window.addEventListener("storage", storageEventHandler, false);
function storageEventHandler(evt) {
alert("storage updated");
}
function clickme() {
localStorage.setItem("someKey", "someValue");
}
Note: storage event only fires in other tabs. Not inside the tab, you are in currently. click^ :)