摘要:<!DOCTYPE html><html><head><meta charset=utf-8" /><title>登录提示框</title></head><body><style> input{width:200px;height:20px;margin-bottom:5px;}
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8" />
<title>登录提示框</title>
</head>
<body>
<style>
input{width:200px;height:20px;margin-bottom:5px;}
.loading{width:200px;height:30px;}
</style>
<script type="text/javascript">
function load(x) {
var input1 = document.getElementById("name").value;
var input2 = document.getElementById("password").value;
window.alert ("您的账号是:"+ input1 + "您的密码是:"+ input2);
}
</script>
<input type ="text" id="name" placeholder="请输入您的账号" />
<br />
<input type ="password" id="password" placeholder="请输入您的密码" />
<br />
<input type ="button" value="登录" class="loading" onclick="load(this)" />
</body>
</html>
批改老师:灭绝师太批改时间:2018-11-30 09:17:34
老师总结:作业有点牛头不对马嘴啊,这章不是日期函数么,下次不许这样,这个练习也太简单,没有实际意义!