javascript ondblclick attribute
Translation results:
on
英[ɒn] 美[ɑ:n]
prep. (indicating direction) to; (indicating object) to; (indicating position) on...; (indicating time) at the time of...
adv. (put, wear, connect) on; forward, (continue) go on
adj. active situation, state ;Used; Happening; Planned
dblclick
UK[dblk'lɪk] US[dblk'lɪk]
Double click , double click (mouse)
javascript ondblclick attributesyntax
Function: Occurs when the object is double-clicked.
Syntax: ondblclick="SomeJavaScriptCode"
Parameters: SomeJavaScriptCode Required. Specifies the JavaScript to be executed when this event occurs.
javascript ondblclick attributeexample
<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>
Run instance »
Click the "Run instance" button to view the online instance