Redirect to another url when back button is clicked using javascript

后端 未结 4 1771
野趣味
野趣味 2020-12-28 11:14

I have a payment form in which user can enter all his card details,and when he clicks,he is taken to the banks 3D secure page. But,the problem is, the user can simply click

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-28 11:40

    You can use Brooke's modified script. That's a long script (should be used as external file). You can download it here!

    Then use the script like this:

    bajb_backdetect.OnBack = function(){
        document.location.href = 'http://google.com';
    }
    

提交回复
热议问题