<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<title>login</title><script type="text/javascript">
function btRegister(){
alert("register()");
window.self.location="register.do";
}
</script>
</head>
<body>
<form action="login.do" method="post"><strong> 
用户名:</strong><input type="text" name="username"><br><strong>  
  
密码&nbsp; :</strong><input type="password" name="password"><br>
普通用户:<input type="radio" name="type" checked="checked" value="user">&nbsp;
管理员:<input type="radio" name="type" value="admin"><br>
<input type="submit" value="登录">
<input type="button" value="注册" onclick="btRegister()">
</form>
</body>
</html>
点击注册按钮时没有预期的反应,函数没有调用,希望高手给与解答,不胜感激!!