on

英 [ɒn]   美 [ɑ:n]  

prep.(表示方向)向;(表示对象)对;(表示位置)在…上;(表示时间)在…之时

adv.(放,穿,连接)上;向前,(继续)下去

adj.活动着的情况,状态;使用着的;发生着的;计划中的

dblclick

英 [dblk'lɪk]   美 [dblk'lɪk]  

双击,双点取(鼠标)

javascript ondblclick属性 语法

作用:在对象被双击时发生。

语法:ondblclick="SomeJavaScriptCode"

参数:SomeJavaScriptCode    必需。规定该事件发生时执行的 JavaScript。    

javascript ondblclick属性 示例

<html>
<body>

Field1: <input type="text" id="field1" value="Hello World!">
<br />
Field2: <input type="text" id="field2">
<br /><br />
Click the button below to copy the content of Field1 to Field2.
<br />
<button ondblclick="document.getElementById('field2').value=
document.getElementById('field1').value">Copy Text</button>

</body>
</html>

运行实例 »

点击 "运行实例" 按钮查看在线实例