这段代码,我想改成双击的再弹出窗口,怎么总是不成功啊?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>函数调用</title>
<script type="text/javascript">
function contxt() //定义函数
{var="点击我" dblclick
alert("终于双击成功了!");
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我" dblclick="contxt()" />
</form>
</body>
</html>