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
Location assign() Method
The assign() method is supported in all major browsers.
You can use this
<form action="submit.php" onsubmit="return false;" method="post">
and your same script will be work.
Try using assign()
instead:
window.location.assign(data);
window.location.href
is a property, not a method.
You can also use window.location = "someurl";