SyntaxFix
Write A Post
Hire A Developer
Questions
In my case it is working as expected for all browsers after setting time interval.
setTimeout(function(){document.location.href = "myNextPage.html;"},100);