I'm using some JavaScript
that will redirect the user to another URL
after a fixed period of time. This is working well on all browsers but on an iPad 3 I have to test on it isn't working. The timeout fires and I call
window.location = "www.someurl.com";
and I've also tried
window.location.href = "www.someurl.com";
I can see the URL
in the browser changing to www.someurl.ocom
but the browser doesn't actually go there - it stays on the same page.
Is there something iPad specific I have to do to make this work?
Thanks
Turn on Location Services and Location Access for Maps. In the Settings app, tap Privacy, then tap Location Services. Make sure Location Services is on, and make sure Maps is set to While Using the App or Widgets. Set the date, time, and time zone correctly on your device.
All modern browsers map document. location to the window. location but you can prefer window.
location. href and click() methods doesn't work on mobile phone. Bookmark this question.
Windows location settings give you control over whether Windows features can access your device's location and which Windows apps can use your device's location and location history information. To check your location settings, go to Start > Settings > Privacy > Location.
try
location.href = "..."
, should work on both
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With