gpt4 book ai didi

html - 单击按钮重定向到另一个 html 页面

转载 作者:行者123 更新时间:2023-11-28 16:15:25 33 4
gpt4 key购买 nike

我已经尝试了很多不同的方法,比如使用表单或脚本,但我仍然无法做到。这是我目前的代码。谢谢

<button name="nextpg" onclick="redirect()" class="mb-3 signup-btn" >Reset my password</button>

<script type="text/javascript">
function redirect()
{
var url = "http://127.0.0.1:8080/cfmemail.html";
window.location(url);
}
</script>

最佳答案

你可以试试这个。它可能对你有用

<input type="button" onclick="window.location.href = 'http://127.0.0.1:8080/cfmemail.html';" value="Redirect"/>

关于html - 单击按钮重定向到另一个 html 页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59801501/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com