object window extends Window
- Annotations
- @native() @JSGlobal( "window" )
- Alphabetic
- By Inheritance
- window
- Window
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
Components: Object
The entry point to many XPCOM features.
The entry point to many XPCOM features. Some properties, e.g. classes, are only available to sufficiently privileged code. Web code should not use this property.
- Definition Classes
- Window
-
var
MozWebSocket: UndefOr[WebSocket]
TBD
TBD
- Definition Classes
- Window
-
def
URL: Window.URL
returns an object that provides static methods used for creating and managing object URLs.
returns an object that provides static methods used for creating and managing object URLs. It can also be called as a constructor to construct URL objects.
- Definition Classes
- Window
-
var
WebSocket: UndefOr[WebSocket]
TODO
TODO
- Definition Classes
- Window
-
def
_content: Object
- Definition Classes
- Window
-
def
alert(message: |[String, Any] = js.native): Unit
Displays an alert box with a message and an OK button
Displays an alert box with a message and an OK button
- message
Optional. Specifies the text to display in the alert box, or an object converted into a string and displayed
- Definition Classes
- Window
-
def
applicationCache: OfflineResourceList
Read-only: An OfflineResourceList object providing access to the offline resources for the window.
Read-only: An OfflineResourceList object providing access to the offline resources for the window.
- Definition Classes
- Window
-
def
apply(index: Int): Frame
Returns a reference to the window object in the frames.
Returns a reference to the window object in the frames. See Window.frames for more details.
- index
the window index
- returns
the window instance at the given index
- Definition Classes
- Window
- Annotations
- @JSBracketAccess()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
atob(encodedStr: String): String
Decodes a base-64 encoded string
Decodes a base-64 encoded string
- encodedStr
Required. The string which has been encoded by the btoa() method
- Definition Classes
- Window
-
def
blur(): Unit
Removes focus from the current window
Removes focus from the current window
- Definition Classes
- Window
-
def
btoa(str: String): String
Encodes a string in base-64
Encodes a string in base-64
- str
Required. The string to be encoded
- returns
A String, representing the base-64 encoded string
- Definition Classes
- Window
-
def
caches: CacheStorage
Read-only: Returns the CacheStorage object associated with the current origin.
Read-only: Returns the CacheStorage object associated with the current origin. This object enables service worker functionality such as storing assets for offline use, and generating custom responses to requests.
- Definition Classes
- Window
-
def
clearInterval(interval: Interval): Unit
Clears a timer set with setInterval()
Clears a timer set with setInterval()
- interval
Required. The ID of the timer returned by the setInterval() method
- Definition Classes
- Window
-
def
clearTimeout(timeout: Timeout): Unit
Clears a timer set with setTimeout()
Clears a timer set with setTimeout()
- timeout
Required. The ID value of the timer returned by the setTimeout() method
- Definition Classes
- Window
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
close(): Unit
Closes the current window
Closes the current window
- Definition Classes
- Window
-
def
closed: Boolean
Read-only: This property indicates whether the current window is closed or not.
Read-only: This property indicates whether the current window is closed or not.
- Definition Classes
- Window
-
def
confirm(message: |[String, Any] = js.native): Unit
Displays a dialog box with a message and an OK and a Cancel button
Displays a dialog box with a message and an OK and a Cancel button
- message
Optional. Specifies the text to display in the confirm box
- Definition Classes
- Window
-
def
console: Console
Read-only: Returns a reference to the console object which provides access to the browser's debugging console.
Read-only: Returns a reference to the console object which provides access to the browser's debugging console.
- Definition Classes
- Window
-
def
content: Object
Read-only: Returns a reference to the content element in the current window.
Read-only: Returns a reference to the content element in the current window. The obsolete variant with underscore is no longer available from Web content.
- Definition Classes
- Window
-
def
controllers: XULControllers
Read-only: Returns the XUL controller objects for the current chrome window.
Read-only: Returns the XUL controller objects for the current chrome window.
- Definition Classes
- Window
-
def
crypto: Object
Read-only: Returns the browser crypto object.
Read-only: Returns the browser crypto object.
- Definition Classes
- Window
-
def
defaultStatus: String
Gets/sets the status bar text for the given window (Obsolete since Gecko 23).
Gets/sets the status bar text for the given window (Obsolete since Gecko 23).
- Definition Classes
- Window
-
def
devicePixelRatio: Double
Read-only: Returns the ratio between physical pixels and device independent pixels in the current display.
Read-only: Returns the ratio between physical pixels and device independent pixels in the current display.
- Definition Classes
- Window
-
def
dialogArguments: Object
Read-only: Gets the arguments passed to the window (if it's a dialog box) at the time window.showModalDialog() was called.
Read-only: Gets the arguments passed to the window (if it's a dialog box) at the time window.showModalDialog() was called. This is an nsIArray.
- Definition Classes
- Window
-
def
directories: Object
Synonym of window.personalbar
Synonym of window.personalbar
- Definition Classes
- Window
-
def
document: Document
Read-only: Returns a reference to the document that the window contains.
Read-only: Returns a reference to the document that the window contains.
- Definition Classes
- Window
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
focus(): Unit
Sets focus to the current window
Sets focus to the current window
- Definition Classes
- Window
-
def
frameElement: Element
Read-only: Returns the element in which the window is embedded, or null if the window is not embedded.
Read-only: Returns the element in which the window is embedded, or null if the window is not embedded.
- Definition Classes
- Window
-
def
frames: Array[Frame]
Read-only: Returns an array of the subframes in the current window.
Read-only: Returns an array of the subframes in the current window.
- Definition Classes
- Window
-
def
fullScreen: Boolean
This property indicates whether the window is displayed in full screen or not.
This property indicates whether the window is displayed in full screen or not.
- Definition Classes
- Window
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getComputedStyle(element: Element, pseudoElement: Element = js.native): CSSStyleDeclaration
Gets the current computed CSS styles applied to an element
Gets the current computed CSS styles applied to an element
- element
Required. The element to get the computed style for
- pseudoElement
Optional. A pseudo-element to get
- returns
A CSSStyleDeclaration object containing CSS declaration block of the element.
- Definition Classes
- Window
-
def
getSelection(): Selection
Returns a Selection object representing the range of text selected by the user
Returns a Selection object representing the range of text selected by the user
- Definition Classes
- Window
-
def
globalStorage: LocalStorage
Unsupported since Gecko 13 (Firefox 13).
Unsupported since Gecko 13 (Firefox 13). Use Window.localStorage instead. Was: Multiple storage objects that are used for storing data across multiple pages (Obsolete since Gecko 13).
- Definition Classes
- Window
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
history: History
Read-only: Returns a reference to the history object.
Read-only: Returns a reference to the history object.
- Definition Classes
- Window
-
def
innerHeight: Int
Gets the height of the content area of the browser window including, if rendered, the horizontal scrollbar.
Gets the height of the content area of the browser window including, if rendered, the horizontal scrollbar.
- Definition Classes
- Window
-
def
innerWidth: Int
Gets the width of the content area of the browser window including, if rendered, the vertical scrollbar.
Gets the width of the content area of the browser window including, if rendered, the vertical scrollbar.
- Definition Classes
- Window
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
def
isSecureContext: Boolean
Read-only: Indicates whether a context is capable of using features that require secure contexts.
Read-only: Indicates whether a context is capable of using features that require secure contexts.
- Definition Classes
- Window
-
def
length: Int
Read-only: Returns the number of frames in the window.
Read-only: Returns the number of frames in the window. See also window.frames.
- Definition Classes
- Window
-
def
localStorage: LocalStorage
Read-only: Returns a reference to the local storage object used to store data that may only be accessed by the origin that created it.
Read-only: Returns a reference to the local storage object used to store data that may only be accessed by the origin that created it.
- Definition Classes
- Window
-
def
location: Location
Read-only: Gets/sets the location, or current URL, of the window object.
Read-only: Gets/sets the location, or current URL, of the window object.
- Definition Classes
- Window
-
def
locationbar: Any
Read-only: Returns the locationbar object, whose visibility can be toggled in the window.
Read-only: Returns the locationbar object, whose visibility can be toggled in the window.
- Definition Classes
- Window
-
def
matchMedia(mediaQueryString: String): MediaQueryList
Returns a MediaQueryList object representing the specified CSS media query string
Returns a MediaQueryList object representing the specified CSS media query string
- Definition Classes
- Window
-
def
menubar: Menubar
Read-only: Returns the menubar object, whose visibility can be toggled in the window.
Read-only: Returns the menubar object, whose visibility can be toggled in the window.
- Definition Classes
- Window
-
def
messageManager: Any
Returns the message manager object for this window.
Returns the message manager object for this window.
- Definition Classes
- Window
-
def
moveBy(deltaX: Int, deltaY: Int): Unit
Moves a window relative to its current position
Moves a window relative to its current position
- Definition Classes
- Window
-
def
moveTo(x: Int, y: Int): Unit
Moves a window to the specified position
Moves a window to the specified position
- Definition Classes
- Window
-
def
mozAnimationStartTime: Int
Read-only: The time in milliseconds since epoch at which the current animation cycle began.
Read-only: The time in milliseconds since epoch at which the current animation cycle began.
- Definition Classes
- Window
-
def
mozInnerScreenX: Int
Read-only: Returns the horizontal (X) coordinate of the top-left corner of the window's viewport, in screen coordinates.
Read-only: Returns the horizontal (X) coordinate of the top-left corner of the window's viewport, in screen coordinates. This value is reported in CSS pixels. See mozScreenPixelsPerCSSPixel in nsIDOMWindowUtils for a conversion factor to adapt to screen pixels if needed.
- Definition Classes
- Window
-
def
mozInnerScreenY: Int
Read-only: Returns the vertical (Y) coordinate of the top-left corner of the window's viewport, in screen coordinates.
Read-only: Returns the vertical (Y) coordinate of the top-left corner of the window's viewport, in screen coordinates. This value is reported in CSS pixels. See mozScreenPixelsPerCSSPixel for a conversion factor to adapt to screen pixels if needed.
- Definition Classes
- Window
-
def
mozPaintCount: Int
Read-only: Returns the number of times the current document has been rendered to the screen in this window.
Read-only: Returns the number of times the current document has been rendered to the screen in this window. This can be used to compute rendering performance.
- Definition Classes
- Window
-
def
name: String
Gets/sets the name of the window.
Gets/sets the name of the window.
- Definition Classes
- Window
-
def
navigator: Navigator
Read-only: Returns a reference to the navigator object.
Read-only: Returns a reference to the navigator object.
- Definition Classes
- Window
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
open(url: String, windowName: String, windowFeatures: Any = js.native): browser.window.this.type
Opens a new browser window
Opens a new browser window
- Definition Classes
- Window
-
def
openDialog(url: String, name: String, features: String, args: Any*): browser.window.this.type
Opens a new dialog window.
Opens a new dialog window.
- Definition Classes
- Window
-
def
opener: Any
Returns a reference to the window that opened this current window.
Returns a reference to the window that opened this current window.
- Definition Classes
- Window
-
def
orientation: Any
Read-only: Returns the orientation in degrees (in 90 degree increments) of the viewport relative to the device's natural orientation.
Read-only: Returns the orientation in degrees (in 90 degree increments) of the viewport relative to the device's natural orientation.
- Definition Classes
- Window
-
def
outerHeight: Int
Read-only: Gets the height of the outside of the browser window.
Read-only: Gets the height of the outside of the browser window.
- Definition Classes
- Window
-
def
outerWidth: Int
Read-only: Gets the width of the outside of the browser window.
Read-only: Gets the width of the outside of the browser window.
- Definition Classes
- Window
-
def
pageXOffset: Int
Read-only: An alias for window.scrollX.
Read-only: An alias for window.scrollX.
- Definition Classes
- Window
-
def
pageYOffset: Int
Read-only: An alias for window.scrollY
Read-only: An alias for window.scrollY
- Definition Classes
- Window
-
def
parent: Frame
Read-only: Returns a reference to the parent of the current window or subframe.
Read-only: Returns a reference to the parent of the current window or subframe.
- Definition Classes
- Window
-
def
performance: Performance
Read-only: Provides a hosting area for performance related attributes.
Read-only: Provides a hosting area for performance related attributes.
- Definition Classes
- Window
-
def
personalbar: String
Read-only: Returns the personalbar object, whose visibility can be toggled in the window.
Read-only: Returns the personalbar object, whose visibility can be toggled in the window.
- Definition Classes
- Window
-
def
pkcs11: String
Formerly provided access to install and remove PKCS11 modules (Obsolete since Gecko 29)
Formerly provided access to install and remove PKCS11 modules (Obsolete since Gecko 29)
- Definition Classes
- Window
-
def
postMessage(message: String, targetOrigin: String, transfer: Boolean = js.native): Unit
The Window.postMessage() method safely enables cross-origin communication.
The Window.postMessage() method safely enables cross-origin communication. Normally, scripts on different pages are allowed to access each other if and only if the pages that executed them are at locations with the same protocol (usually both https), port number (443 being the default for https), and host (modulo Document.domain being set by both pages to the same value). window.postMessage() provides a controlled mechanism to circumvent this restriction in a way which is secure when properly used.
- message
Data to be sent to the other window. The data is serialized using the structured clone algorithm. This means you can pass a broad variety of data objects safely to the destination window without having to serialize them yourself.
- targetOrigin
Specifies what the origin of otherWindow must be for the event to be dispatched, either as the literal string "*" (indicating no preference) or as a URI. If at the time the event is scheduled to be dispatched the scheme, hostname, or port of otherWindow's document does not match that provided in targetOrigin, the event will not be dispatched; only if all three match will the event be dispatched. This mechanism provides control over where messages are sent.
- transfer
Optional: Is a sequence of Transferable objects that are transferred with the message. The ownership of these objects is given to the destination side and they are no longer usable on the sending side.
- Definition Classes
- Window
-
def
print(): Unit
Prints the content of the current window
Prints the content of the current window
- Definition Classes
- Window
-
def
prompt(message: String, default: String = js.native): String
The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
- message
is a string of text to display to the user. This parameter is optional and can be omitted if there is nothing to show in the prompt window.
- default
is a string containing the default value displayed in the text input field. It is an optional parameter. Note that in Internet Explorer 7 and 8, if you do not provide this parameter, the string "undefined" is the default value.
- returns
a string containing the text entered by the user, or null.
- Definition Classes
- Window
-
def
prompt(): String
The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
The Window.prompt() displays a dialog with an optional message prompting the user to input some text.
- returns
a string containing the text entered by the user, or null.
- Definition Classes
- Window
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
def
resizeBy(xDelta: Int, yDelta: Int): Unit
Resizes the window by the specified pixels
Resizes the window by the specified pixels
- Definition Classes
- Window
-
def
resizeTo(aWidth: Int, aHeight: Int): Unit
Resizes the window to the specified width and height
Resizes the window to the specified width and height
- Definition Classes
- Window
-
def
returnValue: Any
The return value to be returned to the function that called window.showModalDialog() to display the window as a modal dialog.
The return value to be returned to the function that called window.showModalDialog() to display the window as a modal dialog.
- Definition Classes
- Window
-
def
screen: Any
Read-only: Returns a reference to the screen object associated with the window.
Read-only: Returns a reference to the screen object associated with the window.
- Definition Classes
- Window
-
def
screenX: Int
Read-only: Returns the horizontal distance of the left border of the user's browser from the left side of the screen.
Read-only: Returns the horizontal distance of the left border of the user's browser from the left side of the screen.
- Definition Classes
- Window
-
def
screenY: Int
Read-only: Returns the vertical distance of the top border of the user's browser from the top side of the screen.
Read-only: Returns the vertical distance of the top border of the user's browser from the top side of the screen.
- Definition Classes
- Window
-
def
scroll(x_coord: Int, y_coord: Int): Unit
Deprecated.
Deprecated. This method has been replaced by the scrollTo() method.
- x_coord
is the pixel along the horizontal axis of the document that you want displayed in the upper left.
- y_coord
is the pixel along the vertical axis of the document that you want displayed in the upper left.
- Definition Classes
- Window
-
def
scrollBy(x: Int, y: Int): Unit
Scrolls the document by the specified number of pixels
Scrolls the document by the specified number of pixels
- x
is the offset in pixels to scroll horizontally.
- y
is the offset in pixels to scroll vertically.
- Definition Classes
- Window
-
def
scrollMaxX: Int
Read-only: The maximum offset that the window can be scrolled to horizontally, that is the document width minus the viewport width.
Read-only: The maximum offset that the window can be scrolled to horizontally, that is the document width minus the viewport width.
- Definition Classes
- Window
-
def
scrollMaxY: Int
Read-only: The maximum offset that the window can be scrolled to vertically (i.e., the document height minus the viewport height).
Read-only: The maximum offset that the window can be scrolled to vertically (i.e., the document height minus the viewport height).
- Definition Classes
- Window
-
def
scrollTo(x_coord: Int, y_coord: Int): Unit
Scrolls the document to the specified coordinates
Scrolls the document to the specified coordinates
- x_coord
is the pixel along the horizontal axis of the document that you want displayed in the upper left.
- y_coord
is the pixel along the vertical axis of the document that you want displayed in the upper left.
- Definition Classes
- Window
-
def
scrollX: Int
Read-only: Returns the number of pixels that the document has already been scrolled horizontally.
Read-only: Returns the number of pixels that the document has already been scrolled horizontally.
- Definition Classes
- Window
-
def
scrollY: Int
Read only: Returns the number of pixels that the document has already been scrolled vertically.
Read only: Returns the number of pixels that the document has already been scrolled vertically.
- Definition Classes
- Window
-
def
scrollbars: Any
Read-only: Returns the scrollbars object, whose visibility can be toggled in the window.
Read-only: Returns the scrollbars object, whose visibility can be toggled in the window.
- Definition Classes
- Window
-
def
self: browser.window.this.type
Read-only: Returns an object reference to the window object itself.
Read-only: Returns an object reference to the window object itself.
- Definition Classes
- Window
-
def
sessionStorage: SessionStorage
Read-only: Returns a reference to the session storage object used to store data that may only be accessed by the origin that created it.
Read-only: Returns a reference to the session storage object used to store data that may only be accessed by the origin that created it.
- Definition Classes
- Window
-
def
setInterval(func: |[Function, String], delay: Int, params: Any*): Interval
Calls a function or evaluates an expression at specified intervals (in milliseconds)
Calls a function or evaluates an expression at specified intervals (in milliseconds)
- Definition Classes
- Window
-
def
setTimeout(func: |[Function, String], delay: Int, params: Any*): Timeout
Calls a function or evaluates an expression after a specified number of milliseconds
Calls a function or evaluates an expression after a specified number of milliseconds
- Definition Classes
- Window
-
def
sidebar: browser.window.this.type
Read-only: Returns a reference to the window object of the sidebar.
Read-only: Returns a reference to the window object of the sidebar.
- Definition Classes
- Window
-
def
speechSynthesis: SpeechSynthesis
Read-only: Returns a SpeechSynthesis object, which is the entry point into using Web Speech API speech synthesis functionality.
Read-only: Returns a SpeechSynthesis object, which is the entry point into using Web Speech API speech synthesis functionality.
- Definition Classes
- Window
-
var
status: String
Gets/sets the text in the statusbar at the bottom of the browser.
Gets/sets the text in the statusbar at the bottom of the browser.
- Definition Classes
- Window
-
def
statusbar: Any
Read-only: Returns the statusbar object, whose visibility can be toggled in the window.
Read-only: Returns the statusbar object, whose visibility can be toggled in the window.
- Definition Classes
- Window
-
def
stop(): Unit
Stops the window from loading
Stops the window from loading
- Definition Classes
- Window
-
def
storageStorage: Any
Returns a storage object for storing data within a single page session.
Returns a storage object for storing data within a single page session.
- Definition Classes
- Window
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
toolbar: Any
Read-only: Returns the toolbar object, whose visibility can be toggled in the window.
Read-only: Returns the toolbar object, whose visibility can be toggled in the window.
- Definition Classes
- Window
-
def
top: Any
Read-only: Returns a reference to the topmost window in the window hierarchy.
Read-only: Returns a reference to the topmost window in the window hierarchy. This property is read only.
- Definition Classes
- Window
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
window: browser.window.this.type
Read-only: Returns a reference to the current window.
Read-only: Returns a reference to the current window.
- Definition Classes
- Window