跟window.open没有关系,应该是其它地方出现了问题。----建议把代码贴出来
解决方案 »
- javascript刚入门,帮我解析下没有备注的地方
- 在线等....sql数据库查询表中的信息问题...
- 请教一个问题(javascript)html调用函数!很基本
- flex grid 的显示列是怎么设置的,我想用COOKIE
- js提交多个表单
- 如何把下面的字串去掉html标记啊??
- 一个关于Iframe的滚动条的很难解决的隐含问题,请高手指点,谢谢。
- 请问在javascript函数中怎么取到动态的id(如id有可能是a1,或a2,a3,在函数中要实现insertRow())
- 怎么在页面的<s:iterator>标签从javascript中获取value值
- 关于js的知识,求助
- 在一个HTML页面当中,用图形按钮链接一个网页,如何通过敲回车就能实现这个链接?
- 大家好看看关于网页在线编辑器的问题???
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是一控件名
getipvalue1(ip);
-----你把它放在页面的前面的话,当执行它的时候,
<table width="75%" border="1" class="font12" id="iptable1" name="iptable1">等内容还没有下载下来或没有被IE解释出来
所以报错