JavaScript Object Window Object

Source: Internet
Author: User
Tags setinterval time interval

Frames represents an array of all frame objects in the current window

Status indicates the state line information for the browser

Defaultstatus represents the status line information for the browser

History represents the history of the current window, which can be referenced in the Web navigation

Closed a logical value that indicates whether the current window is closed

Document represents the current documents object displayed in the current window

Location represents information for the current URL displayed in the current window

Name represents the names of the current window objects

Opener opens the parent window of the current window

Parent represents the parents window that contains the current window

Top represents the topmost window in a series of nested browsers

Self represents the current window

Length represents the number of frames in the current window

Open (Url,window Name,[,window features]) creates a new browser window

Close () Closes a browser window

alert (message) pops up a warning dialog box

Confirm (message) pops up a confirmation dialog box

Prompt (Message,defaultmessage) pops up a prompt dialog box

Print () is the equivalent of printing buttons in the browser toolbar

Blur () The referenced window is placed behind all other open windows

Focus () is placed in front of all other open windows by the referenced window

MoveTo (x,y) moves the window to the specified coordinates, and the units of x and y are pixels

Resizeby (Horiz,vert) To resize the window according to the given amount of displacement, horiz and vert in pixels

Scroll (X,y) Scrolls the window to the specified coordinate position

Scrollby (Horiz,vert) Scrolls the window according to the given amount of displacement

settimeout (expression,time) sets the code to automatically execute the expression representative after a certain amount of time

SetInterval (Expression,time,[args]) sets a time interval so that the expression code can be executed periodically

Cleartimeout (timer) cancels the timed operation set by the SetTimeout

Clearinterval (timer) cancels the timed operation set by the SetInterval

Attached: Window features parameters

Height defines the heights of a window in pixels

Width defines the widths of a window in pixels

Left defines a pixel-by-unit window from the left-hand side of the screen

Top defines the position of a pixel-per-window from the tops of the screen

Toolbar defines whether there are standard toolbars

Location defines whether URLs are displayed

Directories defines whether to display directory buttons

Status defines whether there is a State bar

MenuBar defines whether a menu bar is available.

ScrollBars defines whether a scroll bar is available when the document content is larger than the window

Resizable defines whether the window size can be changed

Outerheight defines the outer height of a window in pixels

Outerwidth defines the window's external width in pixels

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.