如何使用浏览器中的“返回"按钮转到任务流程的上一页? [英] How to go to previous page in task flow using 'BACK' button in browser?

查看:109
本文介绍了如何使用浏览器中的“返回"按钮转到任务流程的上一页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用ADF应用程序创建了系统,该应用程序可以在浏览器中检测到返回"按钮(例如firefox和google chrome).每次我在浏览器中单击返回"按钮时,都会提示您询问是否需要的消息以停留在当前页面"或离开页面".单击离开页面"后,它将带我进入登录页面.

I have created system using ADF application that can detect 'BACK' button in the browser(e.g. firefox and google chrome).Everytime i click the 'BACK' button in the browser,it will prompt out message that ask user whether want to 'stay in the current page' or 'leave the page'. Once i click 'leave the page' it will take me to the login page.

当用户单击浏览器的后退按钮时,是否有可能返回到任务流程的上一页?顺便说一下,任务流在页面片段中. 谁能告诉我该怎么做?迫切需要执行此步骤.

Is there any possibility for go back to previous page in task flow when user click on browser's back button? By the way, the task flow is in the page fragment. can anyone tell me how to do it?Need this step urgently..

谢谢.

推荐答案

您可以尝试以下方法:

function disableBack() {
    var check =window.location.search; 
    if (check && check.substring(1) =="X") { 
        window.location.replace(<new_url>); 
    }
}

您还可以参考这篇文章:清除浏览器历史记录

You could also refer to this post : Clear browser history

如弗兰克所说,您不应将浏览器与adf应用一起使用,我不认为有一种方法可以通过adf禁用该浏览器.

As Frank mentioned, you should not use the browser back with adf apps and i dont think there is a way to disable that thru' adf.

这篇关于如何使用浏览器中的“返回"按钮转到任务流程的上一页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆