html登陆按钮和注册按钮

<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="注册" οnclick="regist()"/>
        </div>
    </form>
</body>
</html>

发布了333 篇原创文章 · 获赞 68 · 访问量 111万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章