gpt4 book ai didi

javascript - html,通过document.write动态插入表单

转载 作者:行者123 更新时间:2023-11-30 13:39:00 25 4
gpt4 key购买 nike

我正在尝试使用 document.write 动态插入表单,但由于某些原因,该表单不再有效。这是调用 javascript http://pastebin.com/iMQ3FxHM 的代码这是编写表单 http://pastebin.com/vMn9BrKQ 的 javascript . 我正在使用 pastebin,因为 stackoverflow 不会转义 html 标签,而且我没有任何 1010 按钮或其他按钮

<script type="text/javascript">
document.write('<scr' + 'ipt type="text\/jav' + 'ascript" s' + 'rc="http:\/\/www.a' + 'utotraderuae.net\/mem' + 'bers.j' + 's"><\/sc' + 'ript>');
</script>

<script type="text/javascript">
document.write("<h1>");
document.write(" If you are interested to buy it or if you have any question please contact me through the ");
document.write("");
document.write("form bellow .<\/h1>");
document.write("<p>");
document.write(" <a name=\"contactustop\"><\/a><\/p>");
document.write("<form action=\"http:\/\/autotraderuae.net\/members\/process.php\" id=\"contactus\" method=\"POST\">");
document.write(" <strong><span style=\"font-size: 14px;\"><span style=\"font-family: ");
document.write("");
document.write("arial,helvetica,sans-serif;\"><label for=\"email\">Email *<\/label><\/span><\/span><\/strong><br \/>");
document.write(" <input class=\"textfield\" id=\"email\" name=\"fields[Email]\" style=\"width: 400px;\" type=\"text\" ");
document.write("");
document.write("\/>&nbsp;<\/form>");
document.write("<div class=\"fieldblock\" id=\"fieldblock-comments\">");
document.write(" <span style=\"font-family: arial,helvetica,sans-serif;\"><strong><span style=\"font-size: ");
document.write("");
document.write("14px;\"><label for=\"comments\">Your question<\/label><\/span><\/strong><\/span><br \/>");
document.write(" <textarea class=\"textfield\" cols=\"20\" id=\"comments\" name=\"fields[Comments]\" rows=\"4\" ");
document.write("");
document.write("style=\"width: 400px;\"><\/textarea><\/div>");
document.write("<p>");
document.write(" <button type=\"submit\">Submit<\/button><\/p>");

</script>

最佳答案

我看不到表单的结束标记。

此外,'bellow' 应该是 'below'

关于javascript - html,通过document.write动态插入表单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3309075/

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