How do I remove a page from the browser history?

前端 未结 8 1780
孤独总比滥情好
孤独总比滥情好 2021-02-07 11:21

I have an have an ASP.Net page which contains a button. This Page contains a ServerSide Paypal button.

When pushed my server does various clever things on the back end a

8条回答
  •  天命终不由人
    2021-02-07 11:34

    Perhaps you could set a cookie before submitting the form.

    When the page is loaded, check for the existence of that cookie (meaning the form was already submitted). If found, instead of automatically submitting the form, automatically go back (window.history.back()) again.

提交回复
热议问题