Properties of Javascript window

Source: Internet
Author: User
Tags setinterval

Properties of Window

Properties Description
Closed Gets whether the reference window is closed.
Defaultstatus Sets or gets the default information to display on the status bar at the bottom of the window.
Dialogarguments Sets or gets an array of variables or variables passed to the modal dialog window.
Dialogheight Sets or gets the height of the modal dialog box.
Dialogleft Sets or gets the left coordinate of the modal dialog box.
Dialogtop Sets or gets the top coordinate of the modal dialog box.
Dialogwidth Sets or gets the width of the modal dialog box.
FrameElement Gets the frame or IFrame object that generated the window in the parent document.
Length Sets or gets the number of objects in the collection.
Name Sets or gets the value that indicates the window name.
Offscreenbuffering Sets or gets whether the object is drawn outside the screen before it is visible to the user.
Opener Sets or gets a reference to the window that creates the current window.
Parent Gets the parent window in the object hierarchy.
ReturnValue Sets or gets the value returned from the modal dialog box.
Screenleft Gets the x-coordinate of the upper-left corner of the browser client area relative to the upper-left corner of the screen.
Screentop Gets the y-coordinate of the upper-left corner of the browser client area relative to the upper-left corner of the screen.
Self Gets a reference to the current window or frame.
Status Sets or gets information about the status bar at the bottom of the window.
Top Gets the topmost ancestor window.

Events for Window

Events Description
OnActivate triggered when the object is set to the active element.
Onafterprint object is immediately triggered on the object after the document is printed or printed preview associated with the
Onbeforedeactivate Fires immediately before the activeelement changes from the current object to another object in the parent document.
Onbeforeprint Triggers an object's associated document before printing or printing preview on the object.
onBeforeUnload Triggered before the page is going to be uninstalled.
Onblur triggered when the object loses input focus.
Oncontrolselect Triggered when the user is about to make a control selection on the object .
OnDeactivate triggered when activeelement changes from the current object to another object in the parent document.
OnError triggered when an error occurs during object loading.
onfocus triggered when the object receives focus.
OnHelp Triggered when the user presses the F1 key while the browser is in the current window.
OnLoad Triggered immediately after the browser finishes loading the object.
OnMove Triggered when an object is moved.
Onmoveend triggered when the object stops moving.
Onmovestart triggered when the object starts to move.
OnResize triggered when the size of the object is about to change.
Onresizeend Triggered when the user finishes changing the dimensions of the object in the selected area of the control.
Onresizestart Triggered when the user starts to change the dimensions of the object in the control's selection.
Onscroll triggered when the user scrolls the scroll bar of an object.
OnUnload triggered immediately before the object is unloaded.


The collection of window

Collection Description
Frames Gets a collection of all window objects defined by the document definition or associated with the given window.


Method of Window

Method Description
Alert Displays a dialog box that contains custom messages from the application.
Attachevent Binds the specified function to the event so that the function is called whenever the event fires on the object.
Blur Causes the element to lose focus and trigger the onblur event.
Clearinterval Use the SetInterval method to cancel a previously started interval event.
Cleartimeout Cancels the timeout event previously set with the SetTimeout method.
Close Close the current browser window or an HTML application (HTA).
Confirm Displays a confirmation dialog box that contains an optional message and a OK Cancel button.
Createpopup Creates a pop-up window.
DetachEvent Cancels the binding of the specified function from the event so that the function does not receive a notification when the event is triggered.
ExecScript Executes the specified script in the given language.
Focus Causes the element to be focused and executes the code specified by the onfocus event.
Moveby Moves the position of the window by specifying the x and y offset values.
MoveTo Moves the screen position in the upper-left corner of the window to the specified x and y positions.
Navigate Loads the specified URL in the current window.
Open Opens a new window and loads the document for the given URL.
Print Prints the document associated with the window.
Prompt Displays a prompt dialog box with a message and an input box.
Resizeby Changes the current position of the window to scale the specified x and y offsets.
Resizeto Changes the size of the window to the specified width and height values.
Scroll Scrolls the window to the specified x and y offsets from the upper-left corner.
Scrollby Scrolls the window by the X and Y offsets.
ScrollTo Scrolls the window to the specified x and y offsets.
SetActive Sets the object to be the current object without placing the object in focus.
SetInterval Evaluates an expression after each specified millisecond value.
SetTimeout Evaluates an expression after the specified millisecond value.
ShowHelp Displays the Help file. This method can be used with Microsoft HTML help.
ShowModalDialog Creates a modal dialog box that displays the specified HTML document.
showModelessDialog Creates a non-modal dialog box that displays the specified HTML document.


Object of Window

Object Description
Clientinformation Contains information about the Web browser.
Clipboarddata Provides access to the predefined Clipboard formats for use in editing operations.
Document Represents an HTML document in a given browser window.
Event Represents the event state, such as the element that the event occurred, the keyboard state, the mouse position, and the mouse button state.
External Allows access to the additional object model provided by the Microsoft®internet Explorer browser component host application.
History Contains information about the URLs that the user has browsed.
Location Contains information about the current URL.
Navigator Contains information about the Web browser.
Screen Contains information about the customer's screen and rendering capabilities.

Properties of Javascript window

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.