I mysite.com/1.php page over HTTPS with the code:
window.addEventListener("storage", function(e) { alert(1); } ); I mysite.com/2.php page over HTTPS with the code:
localStorage.setItem("nave", Math.random()); The alert event is triggered. However, if mysite.com/2.php loaded via HTTP into (which is the task), the alert does not work.
The question is how to make the alert work when you start mysite.com/2.php loaded via HTTP while mysite.com/1.php loaded via HTTPS ?