跟window.open没有关系,应该是其它地方出现了问题。----建议把代码贴出来

解决方案 »

  1.   

    是啊,在自己页面与运行,与window.open没有关系,没有汲及到窗口间的操作
      

  2.   

    首页面
    function GetIpInfo1()
    {
    var ip=document.form1.ip.value;
    window.open("../../ipinfo.htm?ip="+ip);
    }<input type="button" name="Button" value="Button" onClick="GetIpInfo1();";>打开的页面:
    var ip=getUrlParameter("ip");             ----取得传来的参数值
    getipvalue1(ip);
    function getipvalue1(ip)
    {
    //var ip=document.form1.ip.value;
    getip.FindIpInfo(ip);
    var ipcount=getip.GetIpInfoCount();
    while(document.all.iptable1.rows.length>1) --抱错:document.all.iptable1.rows为空或不是对象
    {
    document.all.iptable1.deleteRow(document.all.iptable1.rows.length-1);
    }
    for(var i=0;i<ipcount;i++)
    {
    getip.SetInfoPos(i);
    //alert(getip.GetIpAddressStop());
    myNewRow = document.all.iptable1.insertRow();
    theCell=myNewRow.insertCell();
    theCell.innerText=getip.GetIpAddressStart();
    theCell.noWrap=true;
    theCell=myNewRow.insertCell();
    theCell.innerText=getip.GetIpAddressStop();
    theCell.noWrap=true;
    theCell=myNewRow.insertCell();
    theCell.innerText=getip.GetIpLocation();
    theCell.noWrap=true;
    }
    }<table width="75%" border="1" class="font12" id="iptable1" name="iptable1">
        <tr>
          <td>起始IP</td>
          <td>终止IP</td>
          <td>位置描述</td>
        </tr>
      </table>说明:getip是一控件名
      

  3.   

    把以下这一句script移到页面的最后或放在body的onload里执行。
    getipvalue1(ip);
    -----你把它放在页面的前面的话,当执行它的时候,
    <table width="75%" border="1" class="font12" id="iptable1" name="iptable1">等内容还没有下载下来或没有被IE解释出来
    所以报错