window.location.href doesn't work in Ipad and Iphone

微笑、不失礼 提交于 2019-12-24 02:44:29

问题


I used Google Login API in form. After logged in user, I used window.location.href to redirect user to another page, but it is not working in iPad and iPhone.

window.location.href = "http://example.com/test";

回答1:


remove href as shown below

window.location = "http://example.com/test";


来源:https://stackoverflow.com/questions/26439843/window-location-href-doesnt-work-in-ipad-and-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!