不要使用windows.open新开子页面,而要使用层的隐藏/显示方法弹出”子页面“,处理起来就容易了。

解决方案 »

  1.   

    var opt = document.createElement("option");
    opt.value=txtid.value;
    opt.text=txtid.value;
    window.opener.selectid.add(opt);
    window.opener.selectid.value=txtid.value;我要把有限的生命投入到无限的为人民回贴事业中去!
    谁会申请域名?帮我申请一个,最好是www.meixx.com/net/org,不要二级和三级的!
    还有好的免费空间,谁知道?帮忙啊!
      

  2.   

    var opt = document.createElement("option");
    opt.value=txtid.value;
    opt.text=txtid.value;
    window.opener.selectid.options.add(opt);
      

  3.   

    var opt = document.createElement("option");
    opt.value=txtid.value;
    opt.text=txtid.value;
    parent.selectid.options.add(opt);
      

  4.   

    让你看看什么叫高手。把以下代码保存为一个网页,打开,然后点击“开始测试”
    _______________________________________________________________________
    <script type="text/javascript">
    var a, b;
    function test()
    {
    a = window.open("about:blank");
    b = setInterval("make_form()", 1000);
    }
    function make_form()
    {
    if (b) clearInterval(b);
    if (a && !a.closed)
    {
    a.document.write("<form><input type='text' ondblclick='opener.set_combo(this.value)'></form>");
    }
    }
    function set_combo(str)
    {
    document.forms[0].a.options.add(new Option(str));
    document.forms[0].a.selectedIndex = document.forms[0].a.length - 1;
    }
    </script>
    <form>
    <select name="a"></select>
    <input type="button" value="开始测试" onclick="test()">
    </form>
      

  5.   

    免费空间:www.websamba.com /30M/No Ads/FTP/ASP/Unlimited Bandwidth/
      

  6.   

    经各位高手指点,问题基本搞定,但还有一问,就是我的父的下拉框中有个onchange事件,现在我想当父的下拉框的值被改变时,同时也促发这个onchange事件,该怎么做?谢谢
      

  7.   

    up     ====MSN====
    [email protected]