Javascript examples for Browser Object Model:Window localStorage
Refresh a page from another page
<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>