Javascript 制作一个’;让我们把你转到另一页
嗨,我想做一个像链接一样工作的按钮。我希望这有道理,你能帮忙吗Javascript 制作一个’;让我们把你转到另一页,javascript,html,css,authentication,Javascript,Html,Css,Authentication,嗨,我想做一个像链接一样工作的按钮。我希望这有道理,你能帮忙吗 <button type="submit" value="Login" id="next" class="login-form-submit next" href="lessonB.html">Next</button> 下一步 我想您有一个使用此按钮提交的表单。在您的情况下,在按钮中添加元素不是正确的解决
<button type="submit" value="Login" id="next" class="login-form-submit next" href="lessonB.html">Next</button>
下一步
我想您有一个使用此按钮提交的表单。在您的情况下,在按钮中添加元素不是正确的解决方案。下面是我将如何做到这一点的示例:
<form action="https://redirect_link_here.com/foo.html" method="GET">
<input name="name">
<input name="lastname">
<button type="submit">Button name</button>
</form>
按钮名称
当您按下按钮时,用户输入将被发送到您在URL中的操作中指定的链接。因此,例如,如果用户输入的是“Andreas”和“Köhler”,则您在提交时会被重定向到此URL:https://redirect_link_here.com/foo.html?name=Andreas&lastname=Koehler. 然后,您可以读取foo.html代码中URL的数据,您的提交按钮不会出错。An
谢谢,但这就是我要查找的内容for@Dropnothing如果这就是你想要的,那么你可以接受答案,但我可以把它放在按钮上吗?@Dropnothing放在按钮上什么?动作属性