日期:2014-05-16 浏览次数:20460 次
<html>
<head>
<title> New Document </title>
<script src="cookies.js"></script>
<script type="text/JavaScript">
<!--
function submit(){
var ID = document.myform.myID.value;
var password = document.myform.myID.value;
document.cookie = escape("ID = ID");
document.write("用户账号是:"+unescape(document.cookie));
}
//-->
</script>
</head>
<body>
<form name="myform">
账号:
<input type="text" name="myID"><br>
密码:
<input type="password" name="mypassword"><br>
<input type="submit" name="sub" value="登录" onclick="submit()">
</body>
</html>