请问我的代码哪里错了,为什么点按钮没反应呢
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>系好安全带,准备启航</title>
<script type="text/javascript">
function dui(){
var a=confirm("准备好了吗?");
if (a==true)
{
document.write("准备好了");
}
else
{
document.write("没准备好");
}
}
</script>
</head>
<body>
<input type="button" value="请点击我" onclick="dui()">
</input>
</body>
</html>