<form target = "aaaa"><input><radio>
<iframe name="aaaa" ...src="http://cn.search.yahoo.com/search/cn?p=javascipt", "&u=g&y=y">?

解决方案 »

  1.   

    别忘了还有选择引擎呀?写全一点:<form name="form1",method="post">
    <input type="text" name="text1" value=""><br>
    <input type="radio" name="yahoo" value="中文yahoo搜索"><br>
    <input type="radio" name="sina" value="新浪搜索"><br>
    <input type="submit" name="submit" value="提交" onclick=我想知道的>
    </form>
    就是点击提交以后,把输入的文本作为要所搜索的内容,然后使用选择的相应引擎,把结果显示在iframe中。
      

  2.   

    <body >
    <form target="aaa">
    <input type="text" name="aa" value="56">           
    <input type="text" name="bb" value="12">     
    <input type="radio" name="ddd" value="中文yahoo搜索">中文yahoo搜索 
    <input type="radio" name="ddd" value="新浪搜索">新浪搜索    
    <input type="submit" onclick="if(document.forms[0].ddd[0].checked ==true)document.forms[0].action='http://sohu.com';if(document.forms[0].ddd[1].checked == true)document.forms[0].action='http://sina.com.cn';">         
    <button onclick="a()">            
    </button>            
    </form>
    <iframe src="about:blank" name="aaa"></iframe>
    </body>
      

  3.   

    action='http://cn.search.yahoo.com/search/cn?p='+document.forms[0].aa.value+'&u=g&y=y'怎么aa的值传递不过来啊?应该怎么写?
      

  4.   

    To sun1979song(十步杀一人):你给的这种方法,在脱机的时候,如果点击,会把当前页面嵌套进取,很不好看。不知道有没有更好的办法。