一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

设置open方法中的参数

时间:2008-01-18 编辑:简简单单 来源:一聚教程网

open method (window object)

Opens a new web browser window.



语法

[windowVar = ][window].open("URL", "windowName", ["windowFeatures"])



windowVar is the name of a new window. Use this variable when referring to a window's properties, methods, and containership.

URL specifies the URL to open in the new window. See the location object for a description of the URL components.

windowName is the window name to use in the TARGET attribute of a <FORM> or <A> tag. windowName can contain only alphanumeric or underscore (_) characters.

windowFeatures is a comma-separated list of any of the following options and values:



   toolbar[=yes|no]|[=1|0]

   location[=yes|no]|[=1|0]

   directories[=yes|no]|[=1|0]

   status[=yes|no]|[=1|0]

   menubar[=yes|no]|[=1|0]

   scrollbars[=yes|no]|[=1|0]

   resizable[=yes|no]|[=1|0]

   width=pixels

   height=pixels



You may use any subset of these options. Separate options with a comma. Do not put spaces between the options.



pixels is a positive integer specifying the dimension in pixels.



Method of

window



Description

The open method opens a new web browser window on the client, similar to choosing New Web Browser from the File menu of the Navigator. The URL argument specifies the URL contained by the new window. If URL is an empty string, a new, empty window is created.

热门栏目