JavaScript objects and Array Reference Encyclopedia (15)

Source: Internet
Author: User
Tags array contains reference return window
Reference | objects | Number of frames within the length window of an array
The full (absolute) URL of the document displayed in the Location window (the property itself is also an object) do not confuse it with a document.location, which is the URL of the currently displayed document. The user can change the window.location (replace the current document with another document), but cannot change the document.location (because this is where the document is currently displayed)
When the name window is open, give the name of the window
Opener represents the window where the script for the current window is opened with window.open (this is a new attribute introduced by Netscape Navigator 3.0beta 3)
Parent contains a synonym for the window for the current frame. A property of the frame and window objects
Self synonyms for the current window or frame
The message in the Status State bar
Top contains synonyms for the topmost browser window for the current frame
window or a synonym for the frame, same as self

Method

Alert () Opens an alert message box
Cleartimeout () Work to terminate the SetTimeout method
Close () Closes the window
Confirm () Opens a Confirm message box, the user can select OK or cancel, if the user clicks OK, the method returns True, click Cancel to return False
Blur () move focus away from the specified window (this is the new method introduced by Netscape Navigator 3.0 Beta 3)
Focus () Bring the specified window to the foreground (another new method)
Open () Opens a new window
Prompt () Opens a prompt dialog box that allows users to type text into the box and return typed text to the script
SetTimeout () waits a specified number of milliseconds, and then runs the instruction event handler

Event handlers

Onload () page loads when triggered
Onunload () trigger when page closes



Related Article

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.