注册 登录
编程论坛 ASP技术论坛

改变窗口大小的程序 大家帮我看看哪错了

zmhdxy 发布于 2008-03-18 21:49, 628 次点击
response.Write " <script language='javascript'> var action;alert('欢迎再次留言,谢谢!'); location.href='IsRegister.asp?action=again'; </script> "

然后Isregister.asp中

function newwindow(str)
{
if(str=="again")
resizeTo(600, 500);
return true;
}

<% str=request("action")%>
<body style="margin:0" onload="newwindow(str)">
怎么没用啊
2 回复
#2
恒天装饰网2008-03-18 23:56
好象是resizemoveTo(600, 500),不太记得了,去搜索下!

[[it] 本帖最后由 恒天装饰网 于 2008-3-18 23:58 编辑 [/it]]
#3
zmhdxy2008-03-19 12:34
不是这个错误
是下面的
<% str=request("action")%>
<body style="margin:0" onload="newwindow(str)">
改 成body style="margin:0" onload="newwindow(request("action"))">
1