<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=GBK">
<script type="text/javascript">
/**
* 注册
*/
function regist() {
// 如果需要在新窗口打开注册界面;
// window.open('Untitled-2.html');
// 如果需要在当前窗口打开登录界面
window.location.href = 'Untitled-2.html';
}
</script>
</head>
<body>
<form action="Untitled-3.html" name="zhuce2" method="post">
<div>用户名:<input type="text" name="username" /></div>
<div>用户名:<input type="password" name="password" /></div>
<div>
<input type="submit" name="denglu" id="button" value="登陆" />
<input type="button"name="lyp" id="button3" value="注册" onclick="regist()"/>
</div>
</form>
</body>
</html>html登陆按钮和注册按钮
最新推荐文章于 2026-05-15 05:17:08 发布
本文介绍了一个简单的HTML登录和注册页面实现方式,包括基本的表单元素和使用JavaScript进行页面跳转的功能。此页面通过表单收集用户名和密码,并提供注册按钮以链接到注册界面。

5396

被折叠的 条评论
为什么被折叠?



