This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

WindowModal

Summary

Represents a modal or modeless child window of a window, with additional utility methods for arguments and return values.

Inherits from WindowWindow

Properties

dialogArguments
Gets the arguments that are specified when showModalDialog is called.
dialogHeight
Gets or sets the height of the content area of a dialog window.
dialogLeft
Gets or sets the X coordinate position of a dialog window.
dialogTop
Gets or sets the Y coordinate position of a dialog window.
dialogWidth
Gets or sets the width of the content area of a dialog window.

Methods

No methods.

Events

No events.

Inherited from Window

Properties

URL
Sets or gets the URL for the current document.
XMLHttpRequest
Represents an XML request using HTTP.
animationStartTime
Obsolete. Returns a timestamp of the start time of the current refresh interval, such that multiple animations can be synchronized with each other.
closed
This read-only property indicates whether the referenced window is closed or not.
defaultStatus
Sets or retrieves the default message displayed in the status bar at the bottom of the window.
frames
Returns the window itself, which is an array-like object, listing the direct sub-frames of the current window.
indexedDB
Provides access to the IndexedDB features supported by the browser and/or device.
innerHeight
Height (in pixels) of the browser window viewport including, if rendered, the horizontal scrollbar.

onLine
:

screenLeft
Retrieves the x-coordinate of the upper left-hand corner of the window frame, relative to the upper left-hand corner of the screen.
screenTop
Retrieves the y-coordinate of the top corner of the client area, relative to the top corner of the screen.
status
Sets the text in the status bar at the bottom of the browser or returns the previously set text.
styleMedia
Gets a StyleMedia object that contains methods and properties. These methods and properties determine the media types that are supported by the object that displays the document object.
top
Retrieves the topmost ancestor window.

Methods

alert
Displays a synchronized dialog box showing the given text and a localized OK button.
cancelAnimationFrame
Cancels a requestAnimationFrame request
clearImmediate
Cancels a function request created with setImmediate.
clearInterval
Cancels the interval previously started using the setInterval method.
clearTimeout
Cancels a time-out that was set with the setTimeout method.
close
Closes the current browser window or tab, or HTML Application (HTA).
confirm
Displays a synchronized confirmation dialog box showing the given text and possibly localized OK and Cancel buttons.
getComputedStyle
Gets the values of all the CSS properties of an element after applying the active stylesheets and resolving the basic computations they may contain. The returned object is of the same type that the object returned from the element’s “style” property, however the two objects have different purposes. The object returned from getComputedStyle is read-only and can be used to inspect the element’s style (including those set by a <style> element or an external stylesheet). The elt.style object should be used to set styles on a specific element.
getSelection
Returns a Selection object that represents the current selection of the document.
moveBy
Moves the screen position of the window by the specified x and y offset values.
moveRow
Moves a table row to a new position.
moveTo
Moves the screen position of the upper-left corner of the window to the specified x and y position
open
Opens a new window and loads the document specified by a given URL.
postMessage
Sends a cross-document message.
requestAnimationFrame
A method to invoke at the optimal time a callback to update the frame of an animation.
resizeBy
Changes the current size of the window by the specified x- and y-offset.
resizeTo
Sets the size of the window to the specified width and height values.
scroll
Causes the window to scroll to the specified x- and y-offset at the upper-left corner of the window.
scrollBy
Causes the window to scroll relative to the current scrolled position by the specified x- and y-pixel offset.
scrollTo
Scrolls the window to the specified x- and y-offset.
setImmediate
Requests that a function be called when current or pending tasks are complete, such as events or screen updates.
setInterval
Evaluates an expression each time a specified number of milliseconds has elapsed.
setTimeout
Evaluates an expression after a specified number of milliseconds has elapsed.
showModalDialog
Do not use. Use <dialog> or a popup window instead. Halts the script execution, creates a popup window, passes it parameters and returns a value when the new window is closed.

Events

message
Fires when a message is received from another context (frame, window, worker and similar).