gpt4 book ai didi

html - 提交后旧的谷歌表单重定向

转载 作者:技术小花猫 更新时间:2023-10-29 11:45:40 24 4
gpt4 key购买 nike

我正在寻找一种解决方案(代码),如何在使用旧 Google 表单提交表单后将用户重定向到自定义感谢页面(不是默认的 Google 页面)。

<iframe name="hidden_iframe"
id="hidden_iframe"
style="display:none;"
onload="if(submitted){window.location='http:/...yourthankyoupage.htm';}">
</iframe>
<form action="https://spreadsheets.google.com/formResponse?formkey=....."
method="post"
target="hidden_iframe"
onsubmit="submitted=true;">

此代码无效。至少不适合我。有什么建议吗?

最佳答案

这是您自己设计的表单吗?这里有一些很好的阅读:http://morning.am/tutorials/how-to-style-google-forms/

基本上是...替换

<form action="YOUR-EMBEDDED-GOOGLE-SPREADSHEET-LINK" method="POST">

<script type="text/javascript">var submitted=false;</script>
<iframe name="hidden_iframe" id="hidden_iframe" style="display:none;"
onload="if(submitted) {window.location='whateveryourredirectis.html';}"></iframe>
<form action="YOUR-EMBEDDED-GOOGLE-SPREADSHEET-LINK" method="post" target="hidden_iframe"
onsubmit="submitted=true;">

关于html - 提交后旧的谷歌表单重定向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6077054/

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