[removed].href on ajax success not working

前端 未结 4 1514
闹比i
闹比i 2020-12-10 13:57

I\'ve been trying to solve this for a while now, but I can\'t get itworking. When a user clicks a link he\'s asked to confirm that he wants to take this action. Then a ajax

相关标签:
4条回答
  • 2020-12-10 14:23

    Location assign() Method

    The assign() method is supported in all major browsers.
    
    0 讨论(0)
  • 2020-12-10 14:24

    You can use this

    <form action="submit.php" onsubmit="return false;" method="post">

    and your same script will be work.

    0 讨论(0)
  • 2020-12-10 14:27

    Try using assign() instead:

    window.location.assign(data);
    

    window.location.href is a property, not a method.

    0 讨论(0)
  • 2020-12-10 14:27

    You can also use window.location = "someurl";

    0 讨论(0)
提交回复
热议问题