请输入你想要去的网页地址:<input type=text name=txt size=30><input type=button value=go onclick="window.location.href=document.all.txt.value">

解决方案 »

  1.   

    to meizz
    可是我希望这个页面是在一个frame里显示啊
      

  2.   

    另外,想把两个表单的内容连在一起构成链接怎么作啊?就是说,一个是目标文件,一个是参数,像xxx.asp?id1=xxxx&id2=xxxxx这样的
      

  3.   

    另外,想把两个表单的内容连在一起构成链接怎么作啊?就是说,一个是目标文件,一个是参数,像xxx.asp?id1=xxxx&id2=xxxxx这样的
      

  4.   

    请输入你想要去的网页地址:<input type=text name=txt1 size=30><br>
    参数一:<input type=text name=txt2 size=30><br>
    参数二:<input type=text name=txt3 size=30><br>
    <input type=button value=go onclick="cc()"><form name=form1></form>
    <script language=Javascript>
    function cc(){
      document.all.form1.target="你要到的 frame 名";
      document.all.form1.action=document.all.txt1.value+"?id1="+document.all.txt2.value+"&id2="+document.all.txt3.value
      document.all.form1.submit();
      }
    </script>