<iframe name="demo"></iframe>
<script language="JavaScript">
<!--
demo.document.designMode="on"
demo.document.onclick=a
function a(){
alert('hello')
}
//-->
</script>
<script language="JavaScript">
<!--
demo.document.designMode="on"
demo.document.onclick=a
function a(){
alert('hello')
}
//-->
</script>
解决方案 »
- <script>的一个模糊查询SQL数据库的
- 【求助】string.replace无法识别全角“-”
- javascript 一个关于panel的问题
- 【散分】【又写了个 JavaScript 小游戏】
- 问一个关于js的<a>标签的问题..急....?
- Javascript如何将以下代码中调用的命令显示的结果同步显示到网页上呢?
- 链接一个页面后,自动关闭原来的页面,用js怎么做啊哪位帅哥高手,教教俺啊
- 正则表达式中 以a开头但是匹配出来的结果又不包括a怎么写
- 请问这个for循环如和实现。
- 同事说B/S没有技术含量....真的吗?
- 为什么不能自动关闭??
- 如何在jsp中取得javascript中的变量值?java与javascript的数据交换,请指点!
Fires whenever the selection state of a document changes. SyntaxEvent property document.onselectionchange = handler Microsoft?JScript?(compatible with ECMA 262 language specification) only
document.onselectionchange = GetRef("handler") Microsoft?Visual Basic?Scripting Edition (VBScript) 5.0 or later only
Named script <SCRIPT FOR = document EVENT = onselectionchange> Internet Explorer only Event Object InformationBubbles No
Cancels No
To invoke Cause the selection object's type property to change.
Return a range from a different location when using the createRange method of the selection object.
Move the insertion point in an editable region of the document using the mouse or keyboard.
Start or extend a text selection by dragging the mouse or using SHIFT+an arrow key.
Make a control selection in an editable region of the document.
Add or remove an element from a multiple selection by pressing SHIFT while clicking on the element.
Delete text or an element in an editable region of the document by using the BACKSPACE key or DELETE key or CTRL+X or the Delete command.
Insert text or an element in an editable region of the document by using CTRL+V or the Paste command.
<iframe name="demo"></iframe>
<script language="JavaScript">
<!--
demo.document.designMode="on"
demo.document.ondblclick=a
function a(){
alert()
alert(event.srcElement.outerHTML)??
alert(edit.document.selection.createRange()(0).tagName)??
}
//-->
</script>
在编辑的时候,点按纽时响应事件???这个为什么不响应??
<iframe name="demo"></iframe>
<script language="JavaScript">
<!--
demo.document.designMode="on"
demo.document.ondblclick=a
function a(){
alert()
alert(event.srcElement.outerHTML)??
alert(edit.document.selection.createRange()(0).tagName)??
}
//-->
</script>
demo.document.execCommand("InsertInputButton")
alert(demo.event.srcElement.outerHTML)
alert(demo.event.srcElement.tagName)
}