button里面的onclick事件没有执行
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>login</title>
</head>
<body>
<div align="center" >
<form action="insert.php" method="post" name="myform">
用户名: <input type="text" name="username" placeholder="请输入用户名"/> <br/>
密码: <input type="password" name="password" placeholder="请输入密码"/><br/>
确认密码<input type="password" name="repassword"placeholder="请再一次输入密码"/><br/>
<button type="button" name="注册" onclick="register()" class="submit_button">注册</button>
<button type="button" class="submit_button" name="重置" onclick="register()">重置</button>
</form>
</div>
<script type="text/javascript">
Function register()
{
alert("js函数运行成功");
}
</script>
</body>
</html>