Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3462039
  • 博文数量: 1450
  • 博客积分: 11163
  • 博客等级: 上将
  • 技术积分: 11101
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-25 14:40
文章分类

全部博文(1450)

文章存档

2017年(5)

2014年(2)

2013年(3)

2012年(35)

2011年(39)

2010年(88)

2009年(395)

2008年(382)

2007年(241)

2006年(246)

2005年(14)

分类:

2005-07-29 14:28:48

用来设定窗口的位置

Set the Window Position

There is another set of options you can use to set the position of the new window on the viewers, but it only works with NS4+ and IE4+:

  1. screenX=number in pixels
    Sets the position of the window in pixels from the left of the screen in Netscape 4+.

  2. screenY=number in pixels
    Sets the position of the window in pixels from the top of the screen in Netscape 4+.

  3. left=number in pixels
    Sets the position of the window in pixels from the left of the screen in IE 4+.

  4. top=number in pixels
    Sets the position of the window in pixels from the top of the screen in IE 4+.

Great, but how do you decide which commands to use if there are different ones for each browser? In this case, you can use both sets of commands- the browser will ignore the set it does not recognize. The example below will give you a new window 0 pixels from the left and 100 pixels from the top of your screen:



阅读(1238) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~