|
| JAVASCRIPT ONDBLCLICK EVENT
The javascript ondblclick event handler is used to trigger a script or action when a user double-clicks a mouse or a pointing device on an element. The ondblclick event calls the action from most elements.
Example:
<a href="#" ondblclick="alert('Jeepers! I\'ve been clicked');">Click this</a>
The above example will output Jeepers! I 've been clicked when you double-click on the link.
The ondblclick event can also call a function as follows:
<head>
<script type="text/javascript">
function clickme()
{
alert('Jeepers! I\'ve been clicked');
}
</script>
</head>
<body>
<a href="#" ondblclick="clickme();">Click this</a>
DEMO:
Double-click on the link below to see the effect:
Click this
See also:
|
|