href是一个重定向属性,而window.open返回的是一个window对象,这里先调用open打开窗口以后,返回window对象,然后href把页面转向到了widnow对象,所以出现了object

解决方案 »

  1.   

    you must write it in a onlick event,because the "a href" will open it link in the current windows, replace the current window.location.href ,so the window show "[Object]",if you want to do that ,
    you must write it in onClick event, example<script language = 'javascript'>
    function pop()
    {
          window.open('index.htm','','width=450,height=500');
    }
    </script>at the link, you can write that<a href=# onClick="pop()">....</a>that, you will be okey!!!!!
      

  2.   

    [object]应该是window object的意思,刷新页面时不一定会出现null,有时刷新会再弹出一个页面,主窗口还是会出出现[object],原因还要请高人解释。
    楼上又是一个刚过英语4-6级的吧。