how to redirect to another web-page on browser refresh. I know people will say its a bad thing but it is quite necessary for me, so please ca you tell me how to redirect the user to another webpage on refresh.
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
Check
performance.navigation
to see if the page has just been refreshed, and if it has, just assign towindow.location.href
accordingly: