繁体   English   中英

我希望我的 html 页面在我提交某个输入时重定向到另一个 html 页面我该怎么做

[英]I want my html page to redirect to another html page when I submit a certain input how can i do that

强文本当我提交某个输入时,我需要 html 页面到 go 到另一个页面

这可以通过 HTML forms 来完成。 您需要在表单中使用操作(要重定向页面的位置)和方法(GET,POST)属性。 例如

<form action="www.example.com" method="post">
<input type="text" name="firstname">
<input type="submit" name="submit">
</form>

单击提交时,它将重定向到 action 属性中给出的 URL。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM