<body>
<form action="" method="post" οnsubmit="return checkFirst()" name="reg">
*用户名:<input type="text" name="name" value="宝儿" disabled="disabled"><br>
*密码:<input type="password" name="pwd"><br>
<input type="submit" value="注册">
</form>
</body>
<script type="text/javascript">
function checkFirst(){
//var name = document.reg.name.value;
//alert(name);
var pwd = document.reg.pwd.value;
alert(pwd);
}
</script>