窗口显示大小问题?

literater0116 2003-08-22 09:06:51
用response.redirect("1.asp"),如何使1.asp一弹出就没有工具栏,状态栏,大小为500*400。
...全文
49 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
literater0116 2003-08-22
  • 打赏
  • 举报
回复
各位兄弟,先谢了,但你们的方法行不通,2.asp包括这句话response.redirect("1.asp?site=" & url),通过javascipt后,打开新的窗口,但原来的2.asp窗口没关掉,这是不允许的
pp4u 2003-08-22
  • 打赏
  • 举报
回复
<SCRIPT LANGUAGE="javascript">
<!--
window.open ('page.html', 'newwindow', 'height=400, width=500, top=0, left=0, toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no, status=no')
//写成一行
-->
</SCRIPT>

lindentree 2003-08-22
  • 打赏
  • 举报
回复
function openwin4scroll(url,winName,width,height) {
xposition=0; yposition=0;
if ((parseInt(navigator.appVersion) >= 4 )) {
xposition = (screen.width - width) / 2;
yposition = (screen.height - height) / 2;
}
theproperty= "width=" + width + ","
+ "height=" + height + ","
+ "location=0,"
+ "menubar=0,"
+ "resizable=0,"
+ "scrollbars=1,"
+ "status=0,"
+ "titlebar=0,"
+ "toolbar=0,"
+ "hotkeys=0,"
+ "screenx=" + xposition + "," //仅适用于Netscape
+ "screeny=" + yposition + "," //仅适用于Netscape
+ "left=" + xposition + "," //IE
+ "top=" + yposition; //IE
//window.open( url,winName,theproperty );
newwin=window.open('','',theproperty );
newwin.location.href =url;

return false;
}
这是一个javascript的函数
lions911 2003-08-22
  • 打赏
  • 举报
回复
必须用WINDOW。OPEN
甘泉123 2003-08-22
  • 打赏
  • 举报
回复
好象不行吧~~~

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧