简体   繁体   中英

Redirect user to thank you page

我有一个html联系人表单,我想在用户单击“发送”按钮后将其重定向到“谢谢”页面。

保存脚本后,您可以设置窗口的位置:

location.href = 'my-thank-you-page.html'

The disable click should be after the function

$(document).ready(function(){
    $("buttonID").click(function(){
    window.location.href= 'http://google.com';
    })  
})  

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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