如何在javascript中恢复以前的页面点击事件并支持所有浏览器?

I have a page where I will have form values in click event once user click payment button it will go to next page will have payment option to pay. If user click back button it must retain form values or div text values. How to achieve this?

There are some ways to do this, it depends to the functionality that you need in your application and what kind of experience you will give to your users.

You may have to disable the web browser back page, the back page functionality must be in a submit button to the previous page by posting a form with all the client data and the controls status. how to stop browser back button using javascript

You also can to preserve the status and the info in client side, by using a cookie that you load in the next page start with an status field, to delete it when you need it. How to load values from a cookie to a form which is in wizardpane (dojo)