javascript - window.location.href doesn't work in Ipad and Iphone - Stack Overflow

I used Google Login API in form. After logged in user, I used window.location.href to redirect user to

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 = "";

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./test";
Share Improve this question edited Oct 18, 2014 at 12:54 George G 7,70512 gold badges48 silver badges61 bronze badges asked Oct 18, 2014 at 12:42 phpdevloper1phpdevloper1 511 silver badge2 bronze badges 1
  • Probably because you are doing something before it. In other words, the first step in your click event handler must be window.location.href = "https://example.";. – Ronnie Smith Commented Feb 13, 2023 at 23:19
Add a ment  | 

1 Answer 1

Reset to default 5

remove href as shown below

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744345232a4569643.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信