var supports_html5_storage = function(){//checked on support properties storage in browsers
try{
return 'Storage' in window && window['Storage'] !== null;
}catch(e){
return false;
}
};
window.onload = function(){
if(supports_html5_storage){
window.addEventListener('storage',function(e){get_event_of_storage(e);},false);
var get_event_of_storage = function(e){
var state;
if(e.state != null){//checked exist parameter "state" of storage data
state = e.state;
alert(state);
}
}
}
}