弹出对话框,在DW上模拟一遍,在chrome打开就不会有弹窗
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>alert</title>
<script type="text/javascript">
function rec(){
var mychar="I love JavaScript";
alert("hello!")
alert("float")
}
</script>
</head>
<body>
<input name="button" type="button" onClick="rec()" value="点击我" />
</body>
</html>