我想禁用浏览器的刷新按钮 [英] I want to disable refresh button of browser

查看:109
本文介绍了我想禁用浏览器的刷新按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!,



我想禁用所有浏览器的刷新按钮,或者我想在div中显示自定义消息。请在服务器端或客户端提供解决方案。

解决方案

您可以使用javascript禁用ctrl + f5和f5按钮/按键。以下是您可以跟进的几个链接: -

禁用刷新 [ ^ ]

禁用刷新2 [ ^ ]

但亲爱的禁用浏览器上的刷新图标几乎是不可能的。就像禁用后退按钮一样,我们使用浏览器历史进行操作。但是我们无法使用浏览器默认设置。

我希望这可以帮助你。

回复你的查询(如果有的话)。

谢谢。


最佳解决方案是打开没有工具栏的页面。

 window.open(   yourPageURL  mywindow  status = 1,toolbar = 0); 


Hi all!,

I want to disable refresh button of all browser or I would like show there custom message in div. Please provide solution whether in Server side or client side.

解决方案

You can disable the ctrl+f5 and only f5 button/keypress using javascript. Below are few links you can follow up with:-
Disable Refresh[^]
Disable Refresh 2[^]
But dear disabling the refresh icon on the browser is next to impossible. Like disabling the back button we manipulate with the browser history. But We cant manipulate with the browser defaults.
I hope this helps you.
Post back your queries if any.
Thanks.


Best solution is to open your Page with no Toolbar.

window.open ("yourPageURL","mywindow","status=1,toolbar=0");


这篇关于我想禁用浏览器的刷新按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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