xxxxxxxxxx
<!DOCTYPE html>
<html>
<head>
<title>ondblclick示例演示 基础教程div.cn</title>
</head>
<body>
<script>
function showAlert()
{
alert("检测到dblclick事件!")
}
</script>
<button ondblclick="showAlert()">鼠标左键双击我</button>
<p>双击上面的元素会触发dblclick事件.</p>
</body>
</html>