Refresh a page from another page - Javascript Browser Object Model

Javascript examples for Browser Object Model:Window localStorage

Description

Refresh a page from another page

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript">
    window.onload=function(){//www.  j ava2  s. c o m
window.setInterval(function(){
    if(localStorage["update"] == "1"){
        localStorage["update"] = "0";
        console.log("yup");
    }
}, 500);
    }

      </script> 
   </head> 
   <body>  
   </body>
</html>

Related Tutorials