window对象的open方法中有以下features,作相应的设置就可以了。features Optional. String specifying the window ornaments to display. The following table lists the supported features. Syntax Description fullscreen={ yes | no | 1 | 0 } Specifies whether to display the browser in a full-screen or normal window. Default is no.
Use full-screen mode carefully. Because this mode hides the browser's title bar and menus, you should always provide a button or other visual clue to help the user close the window. ALT+F4 will also close the new window.
channelmode={ yes | no | 1 | 0 } Specifies whether to display the window in theater mode and show the channel band. toolbar={ yes | no | 1 | 0 } Specifies whether to display the browser toolbar, making buttons such as Back, Forward, and Stop available. location= { yes | no | 1 | 0 } Specifies whether to display the input field for entering URLs directly into the browser. directories = { yes | no | 1 | 0 } Specifies whether to add directory buttons. Default is no. status={ yes | no | 1 | 0 } Specifies whether to add a status bar at the bottom of the window. Default is yes. menubar={ yes | no | 1 | 0} Specifies whether to display the menu bar. Default is yes. scrollbars={ yes | no | 1 | 0} Specifies whether to display horizontal and vertical scroll bars. Default is yes. resizable={ yes | no | 1 | 0} Specifies whether to display resize handles at the corners of the window. width=number Sets the width of the window, in pixels. Minimum value should be 100. height=number Specifies the height of the window, in pixels. Minimum value should be 100. top=number Specifies the top position, in pixels. This value is relative to the upper-left corner of the screen. left=number Specifies the left position, in pixels. This value is relative to the upper-left corner of the screen.
Use full-screen mode carefully. Because this mode hides the browser's title bar and menus, you should always provide a button or other visual clue to help the user close the window. ALT+F4 will also close the new window.
channelmode={ yes | no | 1 | 0 } Specifies whether to display the window in theater mode and show the channel band. toolbar={ yes | no | 1 | 0 } Specifies whether to display the browser toolbar, making buttons such as Back, Forward, and Stop available. location= { yes | no | 1 | 0 } Specifies whether to display the input field for entering URLs directly into the browser. directories = { yes | no | 1 | 0 } Specifies whether to add directory buttons. Default is no. status={ yes | no | 1 | 0 } Specifies whether to add a status bar at the bottom of the window. Default is yes. menubar={ yes | no | 1 | 0} Specifies whether to display the menu bar. Default is yes. scrollbars={ yes | no | 1 | 0} Specifies whether to display horizontal and vertical scroll bars. Default is yes. resizable={ yes | no | 1 | 0} Specifies whether to display resize handles at the corners of the window. width=number Sets the width of the window, in pixels. Minimum value should be 100. height=number Specifies the height of the window, in pixels. Minimum value should be 100. top=number Specifies the top position, in pixels. This value is relative to the upper-left corner of the screen. left=number Specifies the left position, in pixels. This value is relative to the upper-left corner of the screen.
解决方案 »
- 获取页面的全局变量
- vb6 activex 调用js出现automation错误
- b/s框架下, 如何使用AIR调用客户端c++程序
- 如何获得动态生成的dom元素
- ext window 问题请教
- 为什么我用showModalDialog打开的窗口返回的值却是NULL??
- 求助:如何通过javascript限制网页投票中的个数限制及不重复选项
- 怎么判断div的内容为空??
- 检测URL的正则表达式无法工作, 大家来快帮忙呀..
- 如何用js代码禁止浏览器弹出打印预览页面直接使用系统对话框打印
- 关于三级连动下拉框的问题,请教!
- AttachXMLForSelect:XML自动关联多级SELECT菜单代码和例子
以后类似于这样的问可以去搜搜以前的帖子