js 没有form class,你是想打开信窗口吧,window.open()

解决方案 »

  1.   

    <SCRIPT LANGUAGE="JavaScript">
    <!--
    var a = document.createElement("form");
    a.appendChild(document.createElement("<input name=test type=hidden>"));
    a.insertBefore(document.createElement("<input name=test2 type=hidden>"));
    a.action="http://www.csdn.net"
    a.target="_blank"
    a.method="GET"
    alert(a.outerHTML);
    if (confirm("Do you want to submit the created form and see the returned page?"))
    a.submit()
    //-->
    </SCRIPT>