-1

我在我的 wix 网站上嵌入了一个表单 - 它看起来像这样:

<script type="text/javascript" src="https://premier.formstack.com/forms/js.php/formname"></script>

但是感谢页面 URL 一直在表单框架内加载。如何在提交时强制它加载到父页面上?

4

1 回答 1

0

据我所见,您已经嵌入了JavaScript,当我检查时,它基本上将表单添加到文档中。

document.write("<!DOCTYPE html>"+"\n");
document.write("<html  lang=\"\">"+"\n");
document.write("<head>"+"\n");
document.write("    <meta charset=\"utf-8\" />"+"\n");
document.write("    <title>Formstack</title>"+"\n");
document.write("    <link rel=\"stylesheet\" type=\"text/css\" href=\"/forms/style.css\" />"+"\n");
document.write("</head>"+"\n");
document.write("<body>"+"\n");
document.write("    <div id=\"error\" class=\"formError\"><strong>ERROR:</strong> It looks like we couldn\'t find a form with that URL. Please double-check the URL and try again. If you\'re still having trouble, try contacting the person who sent you this form. (Error ID: b15b76df14cf6527b8ee)"+"\n");
document.write("        "+"\n");
document.write("                <br /><br />"+"\n");
document.write("        <form class=\"formErrorBack\" action=\"\">"+"\n");
document.write("            <input type=\"button\" value=\"Back\" onclick=\"history.back()\" />"+"\n");
document.write("        </form>"+"\n");
document.write("                "+"\n");
document.write("    </div>"+"\n");
document.write("</body>"+"\n");
document.write("</html>"+"\n");
document.write(""+"\n");

但是你需要指定formname

当我将其替换为30_day_employee_review您的示例时,您可以看到已加载的表单。

<script type="text/javascript" 
src="https://premier.formstack.com/forms/js.php/30_day_employee_review"></script>

干杯,欢迎来到 StackOverflow!

于 2018-06-09T14:12:13.477 回答