为什么会弹出两个框呢?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我们互动下</title>
<script type="text/javascript">
//document.write("Js进阶版");
//alert("js高级版");
var p=confirm("你初级学过了吗?")
if(p==true){
document.write("你需要学Js进阶版")
}
else{
document.write("你要继续加油!!!")
}
</script>
</head>
<body>
<form><inpute type="button" onClick="p" value="点击确认"></inpute>
</form>
</body>
</html>