<a onClick=javascript:open('要显示的页面','','scrollbars=yes,width=400,height=300')>go</a>
解决方案 »
- 怎么实现用户退出功能,退出后按浏览器后退按钮,返回的是用户登录界面
- 严重: Error filterStart+严重: Context startup failed due to previous errors
- jsp中servlet显示空白页面。
- dtree与iframe问题
- 如何在jsp中分页
- POI读取EXCEL导入数据库后,此EXCEL无法删除文件,请看代码?在线等……
- 跳转后显示出错信息
- 大哥大姐们帮帮忙啊。
- 问一个关于TOMCAT服务器的问题
- 怎样用jspsmartupload将一个文件存入数据库(sqlserver2000)
- 下星期二就要毕业答辩了,可我现在还想重头来过,真不知道那个项目该有什么法子速成
- ManFirst(ManFirst),不晚 请进
window.open('index.html','','width=400,height=300')
netscape 也支持 的啊。
这些只是看需要而已,不一定是为了显示面积
事情是这样的,boss说做oa,想把主界面的菜单栏、地址栏、工具栏都去掉(为了增加显示面积)。我总觉得怪怪的,但又说不出很具体的理由。
还请各位做过这方面的朋友多给点意见!
thank u!!!
或者
window.open('URL','','channelmode=yes');
详细参数说明:
open--------------------------------------------------------------------------------DescriptionOpens a new window and loads the document given by URL, or a blank document if a URL is not provided. Syntax
window = object.open([URL [, name [, features [, replace]]]])Parameter Description
URL String specifying the URL of the document to display. If no URL is specified, a new window with about:blank will be displayed.
name Optional. String specifying the name of the window. This name is used for TARGET on a FORM or an A.
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.
replace Optional. A boolean value specifying whether the URL that is loaded into the new page should create a new entry in the window's browsing history or replace the current entry in the browsing history. If true, no new history entry is created. Return ValueReturns a reference to the new window. Use this reference to script properties and methods on the new window. ResA name for the new window can be used as a target for a form or an A element. By default, the open() method creates a window that has a default width and height and the standard menu, toolbar, and other features of Internet Explorer. You can alter this set of features by using the features parameter. This parameter is a string consisting of one or more feature settings. The replace parameter controls whether the new window is put into the browser history list. For example, the following creates a new window that contains Sample.htm. The new window is 200 by 400 pixels, has a status bar, but does not have a toolbar, menu bar, or address field. window.open("sample.htm",null,
"height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");Applies Towindow
window.open('page.html','','width=300,height=200')
回复人: gjd111686(数字金刚) ( ) 信誉:100 -----------------------------------------------
window.open('URL','','fullscreen=yes');
或者
window.open('URL','','channelmode=yes');
参 数 设定值 含 义
toolbar yes/no 建立或不建立标准工具条
location yes/no 建立或不建立位置输入字段
directions yes/no 建立或不建立标准目录按钮
status yes/no 建立或不建立状态条
menubar yes/no 建立或不建立菜单条
scrollbar yes/no 建立或不建立滚动条
revisable yes/no 能否改变窗口大小
width 确定窗口的宽度
Height 确定窗口的高度。
fullscreen=3, 窗口上的按钮不存了。(关闭,放大,等)
resizable=1, 窗口可以最大化。0是不可以最大化
<!--
var width=800;
var height=600;
width = screen.width;
height= screen.height;var status = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,top=0,left=0,width="+width+",height="+height;
function OpenWindows(url,widthx,heighx){
var newwin=window.open(url,"_blank",status);
return false;
}
OpenWindows("login.jsp");
//-->
</script>
参 数 设定值 含 义
toolbar yes/no 建立或不建立标准工具条
location yes/no 建立或不建立位置输入字段
directions yes/no 建立或不建立标准目录按钮
status yes/no 建立或不建立状态条
menubar yes/no 建立或不建立菜单条
scrollbar yes/no 建立或不建立滚动条
revisable yes/no 能否改变窗口大小
width 确定窗口的宽度
Height 确定窗口的高度。
fullscreen=3, 窗口上的按钮不存了。(关闭,放大,等)
resizable=1, 窗口可以最大化。0是不可以最大化