JavaScript How to force reload a page force reload page chrome,force reload page react,force reload

I need to redirect a page to another after 10seconds, and to do that, i'm using php header :

header( "Refresh:10; url=http://myurl.local/test2.php", true, 303);

But the problem is that when page go to be redirect, a browser dialog box ask for a confirmation (this page ask to confirm the close, some data can be lost ....) and finally don't redirect.

My question is : how can I discard automatically this ?

Warmest thanks !

Answer:1

Are you using OnBeforeUnload() javascript function in the page with this header? Might help if you would remove that call.

More details: https://www.404techsupport.com/2010/03/ask-404ts-whats-up-with-are-you-sure-you-want-to-navigate-away-from-this-page-dialogs/

Answer:2

I have full Date in my JSON Array,but as of my needs i only want the date not the month and year like if full date is 2018-12-01 i want to have only 01. As this is the requirement for me and i have ...

I have full Date in my JSON Array,but as of my needs i only want the date not the month and year like if full date is 2018-12-01 i want to have only 01. As this is the requirement for me and i have ...

How to get output HTML and CSS of grapes.js in Javascript ? I am writing a Django app for newsletter, in which I need a newsletter editor for which I used "grapes.js" newsletter. Everything is fine ...

How to get output HTML and CSS of grapes.js in Javascript ? I am writing a Django app for newsletter, in which I need a newsletter editor for which I used "grapes.js" newsletter. Everything is fine ...

In Angularjs, I keep lot of data in my services so that the server calls can be reduced and the data can be picked from local variables. This leads to data being persisted in the application till user ...

In Angularjs, I keep lot of data in my services so that the server calls can be reduced and the data can be picked from local variables. This leads to data being persisted in the application till user ...

I've just learnt about Getters/Setters for objects and decided to play with it. However, I tried to put a Getter in an array and failed to do so. Is it not possible or am I just doing something wrong? ...

I've just learnt about Getters/Setters for objects and decided to play with it. However, I tried to put a Getter in an array and failed to do so. Is it not possible or am I just doing something wrong? ...