搜索时禁用浏览器命令 [英] Disabling browser commands while searching

查看:82
本文介绍了搜索时禁用浏览器命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个问题:我编写的asp.net页面允许我在使用页面本身的功能启动搜索时与其进行交互。

我想阻止该页面在搜索时接受命令,并在搜索结束后重新启用接受命令。

我该怎么做?



我尝试了什么:



其实什么都没有,我不知道怎么做

I have a problem : an asp.net page I wrote allows me to interact with it while a search is launched using a feature of the page itself .
I would like to prevent the page from accepting commands while it is searching , and reenable accepting commands after the search is over.
How can i do that ?

What I have tried:

actually nothing, i have no idea how to do it

推荐答案

假设你的意思是阻止人们点击链接等,这是通过在整个页面上放置一个稍微透明的div来实现的,这样用户就可以看到一个褪色的图像,后面是什么但是不能点击任何东西,因为div正在阻挡。如果你谷歌像jquery屏幕禁用,你会发现许多插件,允许你做这种事情。



如果通过禁用浏览器命令你的意思是像f5,后退按钮等,然后根本就不能这样做。
Assuming you mean stopping people click on links etc this is achieved by putting a slightly transparent div over the whole page so the user can see a faded image of what is behind but can't click anything as the div is in the way. If you google something like "jquery screen disable" you'll find lots of plug-ins that allow you to do this kind of thing.

If by disabling browser commands you mean things like f5, back button etc then you can't do that at all.


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

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