1.a标签跳转
<a href="https://www.baidu.com/" >当前窗口打开</a>
<a href="https://www.baidu.com/" target="_blank">新窗口打开</a>
2.点击事件跳转
当前窗口打开
onClick="window.location.href ='https://www.baidu.com/'"
新窗口打开
onClick="window.open('https://www.baidu.com/')"
3.form表单跳转
<form action="https://www.baidu.com/" method="post">
<input type="text" name="username" placeholder="请输入用户名">
<input type="password" name="password" placeholder="请输入密码">
<input type="submit" value="登录">
</form>