如何在使用Java的同时使用js禁用浏览器的前进和后退按钮? [英] how to disable forward and backward buttons of browser using js while using java?
本文介绍了如何在使用Java的同时使用js禁用浏览器的前进和后退按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在使用Java的同时使用js禁用浏览器的前进和后退按钮?
登录后,它会进入主页,其中包含2个框架集,每个框架都包含2个带有按钮的框架.
我现在的问题是,这些框架的加载方式有所不同.
当我注销并按后退"按钮时,页面过期将成功工作.
但是,当我单击不同的按钮时,所有页面的加载方式都不同.
How to disable forward and backward buttons of browser using js while using java?
After logged in, it''s moving into homepage which contains 2 frameset and each framset contains 2 frames with buttons in it.
My problem now is this frames are loading differently.
Page expiring is working successfully, when I logout and press back button.
But when I click different button all pages are loading differently.
推荐答案
此提示应为您提供帮助: ^ ]
尽管它谈到了.NET和Javascript,但人们可以轻松地使用/转换Javascript部分以在Java中使用.
This tip should help you out: Browser back button issue after logout[^]
Though it speaks of .NET and Javascript, one can easily use/convert Javascript part to use in Java.
有很多选项,Google会提供帮助,但Sandeep的解决方案是一样好.
但是!
逃避这不会停止键盘快捷键上的ALT + LEFT和ALT + RIGHT按钮.
There are many options, Google will help, but Sandeep''s solution is as good as any.
HOWEVER!
Be away that this does not stop the ALT + LEFT and ALT + RIGHT buttons on the keyboard shortcuts.
这篇关于如何在使用Java的同时使用js禁用浏览器的前进和后退按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文