0

I have a web page template on django. In this template i have two controls. I am waiting the page to be forwarded to another page after a certain time passed.

One is meta :

<meta http-equiv="refresh" content="900;{% url 'list-attendance' %}"/>

and second one is script :

<script>
window.setTimeout(function(){
window.location.href = "{% url 'list-attendance' %}";
},610000);
</script>

If i open one page on browser it works. And redirects to list-attendance url. But if i open same page in two tabs on same browser, one of the pages redirect other one stucks and does not redirect.

ivbtar
  • 799
  • 11
  • 29
  • Check [this](https://stackoverflow.com/questions/15871942/how-do-browsers-pause-change-javascript-when-tab-or-window-is-not-active). It may relate to your case. – holydragon Dec 17 '18 at 09:27
  • it seems javascript is not working in notactive tabs :( – ivbtar Dec 17 '18 at 14:01

0 Answers0