<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>系好安全带,准备启航</title>
<!--引入外部文件的方式-->
<script type="text/javascript">
document.write("系好安全带,准备启航--目标JS"+"<br>")
function hanshu()
{
var score=confirm("请点击我 准备好了吗?");
if (score==true)
{
document.write("准备好起航吧");
}
else{
document.write("重新学习");
}
}
</script>
</head>
<body>
<input type="button" value"请点击我" onclick="hanshu()"> </input>
</body>
</html>
<input type="button" value"请点击我" onclick="hanshu()"> </input>
↓
value = "巴拉巴拉"