【求】100分求window.open的全部参数与用法

1er 2003-10-20 10:47:37
谢谢啦~
...全文
77 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
1er 2003-10-21
  • 打赏
  • 举报
回复
MSDN中的iNET.
IERef.chm
请问这些电子文档的地址是什么?
桃花源土著 2003-10-20
  • 打赏
  • 举报
回复
www.51js.com
cgs1999 2003-10-20
  • 打赏
  • 举报
回复
建议找一本电子文档备查,推荐使用MSDN中的iNET.
xjbx 2003-10-20
  • 打赏
  • 举报
回复
SCRIPT LANGUAGE="javascript">
<!--
window.open ('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no, status=no')
//写成一行
-->
</SCRIPT>
参数解释:
<SCRIPT LANGUAGE="javascript"> js脚本开始;
window.open 弹出新窗口的命令;
'page.html' 弹出窗口的文件名;
'newwindow' 弹出窗口的名字(不是文件名),非必须,可用空''代替;
height=100 窗口高度;
width=400 窗口宽度;
top=0 窗口距离屏幕上方的象素值;
left=0 窗口距离屏幕左侧的象素值;
toolbar=no 是否显示工具栏,yes为显示;
menubar,scrollbars 表示菜单栏和滚动栏。
resizable=no 是否允许改变窗口大小,yes为允许;
location=no 是否显示地址栏,yes为允许;
status=no 是否显示状态栏内的信息(通常是文件已经打开),yes为允许;
</SCRIPT> js脚本结束
gjd111686 2003-10-20
  • 打赏
  • 举报
回复
建议使用IERef.chm在MSDN中
gjd111686 2003-10-20
  • 打赏
  • 举报
回复
showModalDialog

--------------------------------------------------------------------------------

Description

Creates a dialog box and displays in it the HTML document given by URL. The dialog box is a special window that is modal, meaning it retains the input focus until the user closes it.

Syntax
variant = object.showModalDialog(sURL [, vArguments [, sFeatures]])



Parameter Description
sURL String specifying the URL of the document to load and display. While an empty string is accepted (""), it should be noted that this is useless since once a modal dialog has been opened, it cannot be accessed by the page that opened it.
vArguments Optional. Variant specifying the arguments to use when displaying the document. This parameter can be used to pass a value of any type including an array of values. The dialog can extract the values passed by the caller from the dialogArguments property of the window object.
sFeatures Optional. String specifying the window ornaments for the dialog box. It can be a combination of the following values. Syntax Description
dialogWidth:number Sets the width of the dialog window.
dialogHeight:number Sets the height of the dialog window.
dialogTop:number Sets the top position of the dialog window relative to the upper-left corner of the desktop.
dialogLeft:number Sets the left position of the dialog window relative to the upper-left corner of the desktop.
center:{yes | no | 1 | 0 } Specifies whether to center the dialog window within the desktop. Default is yes.


Return Value

Returns a number, string, or other value. This is equal to the value of the returnValue property as set by the document given by URL.

Remarks

The default font settings should be set in the same way CSS attributes are set; for example, "font:3;font-size:4". To define multiple font values, use multiple font attributes.

When dialogLeft and/or dialogTop is specified, the feature center is overridden, even though the default for center is yes.

gjd111686 2003-10-20
  • 打赏
  • 举报
回复
open

--------------------------------------------------------------------------------

Description

Opens 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 Value

Returns a reference to the new window. Use this reference to script properties and methods on the new window.

Remarks

A 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");

yown 2003-10-20
  • 打赏
  • 举报
回复
window.open(Url,标题,窗体属性) DW中有介绍

535

社区成员

发帖
与我相关
我的任务
社区描述
企业开发 Exchange Server
社区管理员
  • 消息协作社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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