PHP代码。点搜索后。弹出个窗口。而不是在本窗口中打开。是在这里面,加代码吧。
<input name="C" type="text" id="C" style="width: 380px;" onKeyUp="jsAutoInstance.handleEvent(this.value,'C',event);"/>
<input name="huan" type="button" id="huan" value="搜索" onclick="so3()"/><?php
require("py.php");
$C=$_GET["C"];
$url=$_NameMark[$C]."/";
Header("Location: $url");
?>

解决方案 »

  1.   


    <input type="button" title="click me" onClick="parent.location='http://www.baidu.com/'">
      

  2.   

    这是js的讨论范围,与php无关
      

  3.   

    <?php
    require("py_stops.php");
    $C=$_GET["C"];
    $url=$_NameMark[$C]."/";   好像是这里应该加。
    Header("Location: $url");
    ?>
      

  4.   

    将你的$url 传递给js 来open.
      

  5.   

    你不是想弹窗吗? 怎么会涉及到php代码? 请描述点吧!
      

  6.   

    晕死了。www.vipcha.net  在输入框里输入"手机"   会有下拉提示。然后点后面的搜索。它总在原窗口中打开。/我想让他在新的窗口中打开。。
      

  7.   

    onclick="window.open(.......);"  //去看看手册中关于open里面的参数。
      

  8.   

    哎!甚至不必用到JS
    你的表单这么写就OK了
    <form action="提交到的页面" method="post" target="_blank">
    ……
    </form>