JSP弹出窗口后定位页面(高分)

sheshijie 2009-02-17 11:29:30
使用window.open弹出新的窗口或者说页面后,
如何让弹出的页面定位显示,比如中部,底部。
或者某一个位置。
解决问题高分赠送!
...全文
219 17 打赏 收藏 转发到动态 举报
写回复
用AI写文章
17 条回复
切换为时间正序
请发表友善的回复…
发表回复
mirzlm 2009-03-06
  • 打赏
  • 举报
回复
mark
sjkof 2009-03-06
  • 打赏
  • 举报
回复
window.open (url"", "height=100, width=400, top=0, left=0,toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")
tiancaizhou 2009-03-06
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 kingdomofhavean 的回复:]
引用 3 楼 catechu 的回复:
window.open (url"", "height=100, width=400, top=0, left=0,toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")


top和left对新打开的窗口进行订位设置呀.

就是这样的 自己调一调。
[/Quote]
就是这样的,我也是今天才学到的
wangzhuoyan 2009-03-06
  • 打赏
  • 举报
回复
你把他弹出大小设置固定的高,宽,但是你要考虑宽屏,的问题
yqlx521 2009-03-06
  • 打赏
  • 举报
回复
解决方法很多啊 ,呵呵 学习了
倾听-csdn 2009-03-06
  • 打赏
  • 举报
回复
支持楼上再楼上的说法
liujun196584 2009-02-17
  • 打赏
  • 举报
回复
window.open有带参的参数,你可以通过可以设置的啊?去看一下js的帮助上面说的不是清清楚楚吗?
Jacky_Zhu_1983 2009-02-17
  • 打赏
  • 举报
回复
>_< google下 window.open 参数属性的作用
catechu 2009-02-17
  • 打赏
  • 举报
回复
window.open (url"", "height=100, width=400, top=0, left=0,toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")


top和left对新打开的窗口进行订位设置呀.
esena 2009-02-17
  • 打赏
  • 举报
回复
oNewWindow = window.open( [sURL] [, sName] [, sFeatures] [, bReplace])
sFeatures:
height = number Specifies the height of the window, in pixels. The minimum value is 100.
left = number Specifies the left position, in pixels.
This value is relative to the upper-left corner of the screen. The
value must be greater than or equal to 0.
top = number Specifies the top position, in pixels.
This value is relative to the upper-left corner of the screen. The value
must be greater than or equal to 0.
width = number Sets the width of the window, in pixels. The minimum value is 100.

screen 对象:
availHeight 获取系统屏幕的工作区域高度,排除 Microsoft® Windows® 任务栏。
availWidth 获取系统屏幕的工作区域宽度,排除 Windows 任务栏。
-----------------------------------------------------------------------
以上内容来自官方文档--相信已经足够了吧
HinanaiTenshi 2009-02-17
  • 打赏
  • 举报
回复
window.open不是能带参数的么
JavaLover00000 2009-02-17
  • 打赏
  • 举报
回复
在google上查下 window.open()的 参数详解不就好了!!
wipe_tear 2009-02-17
  • 打赏
  • 举报
回复
学习了
怎么不收录 2009-02-17
  • 打赏
  • 举报
回复
window.open(url,"newOpen","width=850,height=500,scrollbars=yes,resizable=yes,left="+left+",top="+top+",location=no");
url为新窗口连接地址
left,top可以自己设置
leavedelphi 2009-02-17
  • 打赏
  • 举报
回复
window.open('url','','height=400,width=600,top='
+screen.AvailHeight+',left='+(screen.AvailWidth-600)/2
+',toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no, status=no');
kingdomofhavean 2009-02-17
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 catechu 的回复:]
window.open (url"", "height=100, width=400, top=0, left=0,toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")


top和left对新打开的窗口进行订位设置呀.
[/Quote]
就是这样的 自己调一调。
liu_zhaoqf 2009-02-17
  • 打赏
  • 举报
回复
Syntax

oNewWindow = window.open( [sURL] [, sName] [, sFeatures] [, bReplace])

Parameters

height = number Specifies the height of the window, in pixels.
left = number Specifies the left position, in pixels.
top = number Specifies the top position, in pixels.
width = number Sets the width of the window.


Example:
window.open("Sample.htm",null,"height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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