<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>confirm</title>
<script type="text/javascript">
function reca() {
var aaa = confirm("Welcome!");
if (aaa == true) {
alert("hello!my friend");
} else {
docoment.write("hi!")
}
</script>
</head>
<body>
<input type="button" name="button" value="点击这里" onclick="reca()" />
</body>
</html>
求前辈指导指导
李晓健
相关分类