xmlhttp or submit to a <iframe>

解决方案 »

  1.   

    <html><head>
    <meta http-equiv="Content-Language" content="zh-cn">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>New Page 1</title>
    </head><body>
    <script>
    function changevalue(){ 
    document.form1.T2.value=document.form1.T1.value; 

    </script>
    <form method="POST" name="form1"> 
     
      <p><input type="text" name="T1" size="20"><input type="text" name="T2" size="20"></p> 
      <p><input type="button" value="按钮" name="B2" onclick="javascript:changevalue();"></p> 
    </form> 
     
    </body> 
     
    </html>