初学javascript,有问题望各位赐教!!!!!!
YHeng 2002-12-24 05:08:29 初学javascript,有问题望各位赐教!!!!!!
sendinfo.htm
<html>
<head>
<title> Test Page </title>
<script language="javascript">
function validateinfo()
{
if (window.document.forms["personalinfo"].elements["username"].value=="")
{
window.alert (" 用户名不能为空!");
window.document.forms["personalinfo"].elements["username"].focus();
return false;
}
else
return true;
}
</script>
</head>
<body bgcolor="#22ceff" link="#ff35ce">
<form name="personalinfo" action="getinfo.htm" method="POST" onsubmit="return validateinfo();">
UserName:<input type="text" name="username" value="" size="20">
<input type="submit" value="Submit" >
<input type="reset" value="Clear">
</form>
</body>
</html>
getinfo.htm文件中如何获得sendinfo.htm文件发过来的信息呢?