<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>
解决方案 »
- JavaScript的continue问题.请帮一下忙
- 使用setTimeout方法,调用类方法时出现的问题
- 求救关于控件名称中带小数点的取值问题!!!
- 简单问题
- 见过这样的脚本验证工具吗?(广告,javascript高手也可参考)
- javascript调用MSXML2的时候,系统出现提示“没有权限”。具体内详。。。。忘高手指点。
- 我举报
- 求鼠标后可跟随文字的特效,文字可以有规律的晃来晃去。。
- 关于用JavaScript向textarea写入的问题.急 谢谢了
- 前 几秒的时间怎么算
- 为什么不能自动关闭??
- 如何在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)
}