[英]Restrict browser refresh, f5, browser back like banking sites through javascript/jquery
你们中的一些人知道某些银行网站中的F5,浏览器刷新/后退按钮功能...像那样,可以使用跨浏览器的任何方式来使用javascript / jquery控制浏览器功能
(1) No. There no possible cross-browser way to control browser functionality with javascript/jquery. (1)否。无法使用跨浏览器的方式来使用javascript / jquery控制浏览器功能。
(2) Banking sites do not restrict or control the browser functionality. (2)银行网站不限制或控制浏览器功能。 They only ask users to desist.
他们只要求用户停止。 At most they attempt to detect some actions and then show errors.
他们最多尝试检测一些动作,然后显示错误。 But, they don't try to control the browser.
但是,他们不会尝试控制浏览器。
(3) This is a bad idea. (3)这是一个坏主意。
Back in the day some banking sites would spawn a new window in javascript without any browser chrome. 早些时候,一些银行网站会在JavaScript中生成一个没有任何浏览器镶边的新窗口。 This doesn't disable refreshes and page navigation, but it makes it a little less likely that novice users will initiate them.
这不会禁用刷新和页面导航,但是使新手用户启动它们的可能性降低了。
I believe most banking sites these days just disable the page caching and show an error message telling you not to refresh the page if you reload of press back, in combination with some server side tracking of your navigation. 我相信这些天大多数银行网站都只是禁用了页面缓存,并显示一条错误消息,告诉您如果重新加载新闻稿时不要刷新页面,同时结合一些导航的服务器端跟踪。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.