duancong2965 2015-10-23 14:51
浏览 24

如何在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?

  • 写回答

1条回答 默认 最新

  • doufei16736 2016-01-21 15:39
    关注

    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)

    评论

报告相同问题?

悬赏问题

  • ¥15 BP神经网络控制倒立摆
  • ¥20 要这个数学建模编程的代码 并且能完整允许出来结果 完整的过程和数据的结果
  • ¥15 html5+css和javascript有人可以帮吗?图片要怎么插入代码里面啊
  • ¥30 Unity接入微信SDK 无法开启摄像头
  • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
  • ¥20 cad图纸,chx-3六轴码垛机器人
  • ¥15 移动摄像头专网需要解vlan
  • ¥20 access多表提取相同字段数据并合并
  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算