[英]Can I use or turn on the 'insert' caret in modern browsers using javascript?
I have a situation where I'd prefer the old flashing box caret (instead of the standard flashing line) that erases the character it is currently situated over and replaces it with whatever the user just typed. 我遇到的情况是,我希望使用旧的闪烁框插入符号(而不是标准的闪烁线条)来擦除当前位于其上方的字符,并用用户刚刚键入的任何字符替换它。
In my case, I would like it for 就我而言,我希望
<input type='text' />
but even just turning it on anywhere would be great. 但是即使只是在任何地方打开它也很棒。
I recall it wasn't so easy to turn on in native windows programming, so I'm not expecting much here. 我记得在本机Windows编程中打开它并不是那么容易,所以我在这里期望不高。
Anyone know how to do it? 有人知道怎么做吗?
Firefox, Safari, and Chrome do not support an insert, over over-write, mode. Firefox,Safari和Chrome不支持插入(覆盖)模式。 In IE (only) you can query if it is turned on by the OS via
document.queryCommandValue("OverWrite")
but there is not a way to set it. 在IE中(仅),您可以通过
document.queryCommandValue("OverWrite")
来查询操作系统是否将其打开,但是无法进行设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.