我有只读文本框。但它可以在浏览器中按F7时写入 [英] I have Read only Textbox. But it enabled to write while press F7 in browser

查看:268
本文介绍了我有只读文本框。但它可以在浏览器中按F7时写入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



(浏览器IE8):我创建了一个文本框只读的页面。我给了一个日历来选择价值。但是当按下F7键时。它启用了只读,因此我能够以只读方式输入值。如何解决这个问题,我希望文本框始终只读。请帮帮我。谢谢。

Hi,
(BROWSER IE8): I created a page with textbox as read only. I given a calender to select the value. But when Press a F7 key. Its enabled that read only, so I was able to enter values in read only. How to over come this problem, I want the textbox as read only all the time. Please help me on this. Thank you.

推荐答案

按F7打开或关闭浏览器的Caret Browsing。据我所知,你不能从ASP.NET或javascript控制这种行为。您需要更改浏览器设置。
Pressing F7 turns Caret Browsing on or off of the browser. As far I know you can't control this behaviour from ASP.NET or javascript. You need to change the browser settings.


这篇关于我有只读文本框。但它可以在浏览器中按F7时写入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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