和IE的版本有点关系,先问你的shi  ie几?

解决方案 »

  1.   

    1.html
    =================
    <html>
    <head>
    <title>Example</title>
    </head>
    <script>
    function xx(){
    window.open("2.html","");
    }
    function inst()
    {
    document.form1.select1.options[0]=new Option('aaa','aaa',0,0)
    }
    </script>
    <body>
    <form name="form1">
      <select name="select1">
      </select>
    <input type="button" onclick=xx() value="click">
    </form>
    </body>
    </html>============
    2.html
    ====================
    <html>
    <head>
    <title>Example</title>
    </head>
    <body>
    <script>
    window.opener.inst()
    window.opener.focus()
    self.close()
    </script>
    </body>
    </html>
      

  2.   

    opener对象是ie3就支持了的,应该出问题的地方是select标签,你把
    <script language="javascript1.2">
      window.opener.document.write("<script>");
      window.opener.document.form1.select1.options[0]=new Option('aaa','aaa',0,0)");
    window.opener.document.write("</script>");
    </script>
    改为<script>opener.document.write("this is a test")</script>
    1.html就会有改动,建议你最好是调用1.html的方法来做这个事情,可能妥当些
      

  3.   

    失败!1.html
    --------------------------------------------
    有三个下拉框
    1、是地区2、是省份、3、是城市
    要求:第一个下拉框选择任意一个,第二个下拉框就出现相应的省份。
    依次类推,
    三个下拉框在同一个页面里,
    请问应该如何解决呢?
    我已经想了好几种方法了,皆不成功。很遗憾!!