Netscape不支持iframe
你上面的界面在Netscape下能显示吗?你用哪个版本的?

解决方案 »

  1.   

    是的,netscape好像还不支持框架
    ie下
    document.aform.a.length=0
    可以清除下拉列表
      

  2.   

    楼上两位,我用的netscape7.0、7.1都支持框架的。
      

  3.   

    <select id=s1>
    <option>a</option>
    </select>
    <script>
    document.getElementById('s1').length = 0;
    </script>
    清空这样是可以的,在netscape7.1下试过
      

  4.   

    javaScript代码是在main.htm里写的,是右边的List清空,而不是本身的清空。
      

  5.   

    1.html
    <html>
    <body>
    <iframe id=a src="a.html">
    </iframe>
    <iframe id=b src="b.html">
    </iframe>
    <input type=button onclick="document.getElementById('a').contentWindow.document.getElementById('s1').length=0" value="clear s1">
    </body>
    </html>a.html
    <html>
    <body>
    s1
    <select id=s1>
    <option>a</option>
    </select>
    <input type=button onclick="window.parent.document.getElementById('b').contentWindow.document.getElementById('s2').length=0" value="clear s2">
    </body>
    </html>b.html
    <html>
    <body>
    s2
    <select id=s2>
    <option>a</option>
    </select>
    </body>
    </html>