The Screen interface represents a screen, usually the one on
the current window is being rendered, and is obtained using window.screen
.
The Screen interface represents a screen, usually the one on the current window is being rendered, and is obtained using `window.screen`.
(add-event-listener this & args)
Method.
The web.EventTarget
method addEventListener() sets up a function
will be called whenever the specified event is delivered to the
target.addEventListener(type, listener[, options]); target.addEventListener(type, listener[, useCapture]); target.addEventListener(type, listener[, useCapture, wantsUntrusted ]); // Gecko/Mozilla only
See also: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
Method. The `web.EventTarget` method addEventListener() sets up a function will be called whenever the specified event is delivered to the `target.addEventListener(type, listener[, options]); target.addEventListener(type, listener[, useCapture]); target.addEventListener(type, listener[, useCapture, wantsUntrusted ]); // Gecko/Mozilla only` See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener`
(avail-height this)
Property.
[Read Only]
The read-only web.cssdom.Screen
interface's availHeight property
the height, in CSS pixels, of the space available for Web content
the screen. Since web.cssdom.Screen
is exposed on the web.Window
window.screen
property, you access availHeight using window.screen.availHeight.
let availHeight = window.screen.availHeight;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/availHeight
Property. [Read Only] The read-only `web.cssdom.Screen` interface's availHeight property the height, in CSS pixels, of the space available for Web content the screen. Since `web.cssdom.Screen` is exposed on the `web.Window` `window.screen` property, you access availHeight using window.screen.availHeight. `let availHeight = window.screen.availHeight;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/availHeight`
(avail-left this)
Property.
[Non Standard]
Returns the first available pixel available from the left side the screen.
let availLeft = window.screen.availLeft;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/availLeft
Property. [Non Standard] Returns the first available pixel available from the left side the screen. `let availLeft = window.screen.availLeft;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/availLeft`
(avail-top this)
Property.
[Non Standard]
Specifies the y-coordinate of the first pixel that is not allocated permanent or semipermanent user interface features.
let availTop = window.screen.availTop;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/availTop
Property. [Non Standard] Specifies the y-coordinate of the first pixel that is not allocated permanent or semipermanent user interface features. `let availTop = window.screen.availTop;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/availTop`
(avail-width this)
Property.
The Screen.availWidth property returns the amount of horizontal (in pixels) available to the window.
var width = window.screen.availWidth
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/availWidth
Property. The Screen.availWidth property returns the amount of horizontal (in pixels) available to the window. `var width = window.screen.availWidth` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/availWidth`
(color-depth this)
Property.
[Read Only]
The Screen.colorDepth read-only property returns the color depth the screen. Per the CSSOM, some implementations return 24 for reasons. See the browser compatibility section for those that
bitDepth = window.screen.colorDepth;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/colorDepth
Property. [Read Only] The Screen.colorDepth read-only property returns the color depth the screen. Per the CSSOM, some implementations return 24 for reasons. See the browser compatibility section for those that `bitDepth = window.screen.colorDepth;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/colorDepth`
(dispatch-event this event)
Method.
Dispatches an web.Event
at the specified web.EventTarget
,
invoking the affected web.other.EventListener
s in the appropriate
The normal event processing rules (including the capturing and
bubbling phase) also apply to events dispatched manually with
cancelled = !target.dispatchEvent(event)
See also: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/dispatchEvent
Method. Dispatches an `web.Event` at the specified `web.EventTarget`, invoking the affected `web.other.EventListener`s in the appropriate The normal event processing rules (including the capturing and bubbling phase) also apply to events dispatched manually with `cancelled = !target.dispatchEvent(event)` See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/dispatchEvent`
(height this)
Property.
[Read Only]
The Screen.height read-only property returns the height of the in pixels.
var height = window.screen.height
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/height
Property. [Read Only] The Screen.height read-only property returns the height of the in pixels. `var height = window.screen.height` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/height`
(left this)
Property.
[Non Standard]
Returns the distance in pixels from the left side of the main to the left side of the current screen.
var left = window.screen.left;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/left
Property. [Non Standard] Returns the distance in pixels from the left side of the main to the left side of the current screen. `var left = window.screen.left;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/left`
(lock-orientation this orientation)
Method.
[Deprecated]
The lockOrientation() method of the web.cssdom.Screen
interface
the screen into a specified orientation. The ScreenOrientation.lock()
should be used instead.
lockAllowed = window.screen.lockOrientation(orientation);
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation
Method. [Deprecated] The lockOrientation() method of the `web.cssdom.Screen` interface the screen into a specified orientation. The `ScreenOrientation.lock()` should be used instead. `lockAllowed = window.screen.lockOrientation(orientation);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation`
(moz-brightness this)
Property.
[Deprecated] [Non Standard]
Indicates how bright the screen's backlight is, on a scale from (very dim) to 1 (full brightness); this value is a double-precision
let screenBrightness = window.screen.mozBrightness;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/mozBrightness
Property. [Deprecated] [Non Standard] Indicates how bright the screen's backlight is, on a scale from (very dim) to 1 (full brightness); this value is a double-precision `let screenBrightness = window.screen.mozBrightness;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/mozBrightness`
(moz-enabled this)
Property.
[Deprecated] [Non Standard]
This Boolean attribute controls the device's screen. Setting to false will turn off the screen.
let screenEnabled = window.screen.mozEnabled
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/mozEnabled
Property. [Deprecated] [Non Standard] This Boolean attribute controls the device's screen. Setting to false will turn off the screen. `let screenEnabled = window.screen.mozEnabled` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/mozEnabled`
(onorientationchange this)
Property.
[Deprecated]
An event handler for the orientationchange events sent to the
object. The ScreenOrientation.onchange
handler should be used
`screen.onorientationchange = funcRef;
Where funcRef is a reference to a function.`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/onorientationchange
Property. [Deprecated] An event handler for the orientationchange events sent to the object. The `ScreenOrientation.onchange` handler should be used `screen.onorientationchange = funcRef; Where funcRef is a reference to a function.` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/onorientationchange`
(orientation this)
Property.
[Read Only] [Experimental]
The orientation read-only property of the web.cssdom.Screen
returns the current orientation of the screen.
var orientation = window.screen.orientation;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation
Property. [Read Only] [Experimental] The orientation read-only property of the `web.cssdom.Screen` returns the current orientation of the screen. `var orientation = window.screen.orientation;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation`
(pixel-depth this)
Property.
Returns the bit depth of the screen. Per the CSSOM, some implementations 24 for compatibility reasons. See the browser compatibility section those that don't.
let depth = window.screen.pixelDepth
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/pixelDepth
Property. Returns the bit depth of the screen. Per the CSSOM, some implementations 24 for compatibility reasons. See the browser compatibility section those that don't. `let depth = window.screen.pixelDepth` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/pixelDepth`
(remove-event-listener this & args)
Method.
The EventTarget.removeEventListener() method removes from the
an event listener previously registered with EventTarget.addEventListener()
.
event listener to be removed is identified using a combination
the event type, the event listener function itself, and various
options that may affect the matching process; see Matching event
for removal
target.removeEventListener(type, listener[, options]); target.removeEventListener(type, listener[, useCapture]);
See also: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener
Method. The EventTarget.removeEventListener() method removes from the an event listener previously registered with `EventTarget.addEventListener()`. event listener to be removed is identified using a combination the event type, the event listener function itself, and various options that may affect the matching process; see Matching event for removal `target.removeEventListener(type, listener[, options]); target.removeEventListener(type, listener[, useCapture]);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener`
(set-avail-left! this val)
Property.
[Non Standard]
Returns the first available pixel available from the left side the screen.
let availLeft = window.screen.availLeft;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/availLeft
Property. [Non Standard] Returns the first available pixel available from the left side the screen. `let availLeft = window.screen.availLeft;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/availLeft`
(set-avail-top! this val)
Property.
[Non Standard]
Specifies the y-coordinate of the first pixel that is not allocated permanent or semipermanent user interface features.
let availTop = window.screen.availTop;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/availTop
Property. [Non Standard] Specifies the y-coordinate of the first pixel that is not allocated permanent or semipermanent user interface features. `let availTop = window.screen.availTop;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/availTop`
(set-avail-width! this val)
Property.
The Screen.availWidth property returns the amount of horizontal (in pixels) available to the window.
var width = window.screen.availWidth
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/availWidth
Property. The Screen.availWidth property returns the amount of horizontal (in pixels) available to the window. `var width = window.screen.availWidth` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/availWidth`
(set-left! this val)
Property.
[Non Standard]
Returns the distance in pixels from the left side of the main to the left side of the current screen.
var left = window.screen.left;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/left
Property. [Non Standard] Returns the distance in pixels from the left side of the main to the left side of the current screen. `var left = window.screen.left;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/left`
(set-moz-brightness! this val)
Property.
[Deprecated] [Non Standard]
Indicates how bright the screen's backlight is, on a scale from (very dim) to 1 (full brightness); this value is a double-precision
let screenBrightness = window.screen.mozBrightness;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/mozBrightness
Property. [Deprecated] [Non Standard] Indicates how bright the screen's backlight is, on a scale from (very dim) to 1 (full brightness); this value is a double-precision `let screenBrightness = window.screen.mozBrightness;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/mozBrightness`
(set-moz-enabled! this val)
Property.
[Deprecated] [Non Standard]
This Boolean attribute controls the device's screen. Setting to false will turn off the screen.
let screenEnabled = window.screen.mozEnabled
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/mozEnabled
Property. [Deprecated] [Non Standard] This Boolean attribute controls the device's screen. Setting to false will turn off the screen. `let screenEnabled = window.screen.mozEnabled` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/mozEnabled`
(set-onorientationchange! this val)
Property.
[Deprecated]
An event handler for the orientationchange events sent to the
object. The ScreenOrientation.onchange
handler should be used
`screen.onorientationchange = funcRef;
Where funcRef is a reference to a function.`
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/onorientationchange
Property. [Deprecated] An event handler for the orientationchange events sent to the object. The `ScreenOrientation.onchange` handler should be used `screen.onorientationchange = funcRef; Where funcRef is a reference to a function.` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/onorientationchange`
(set-pixel-depth! this val)
Property.
Returns the bit depth of the screen. Per the CSSOM, some implementations 24 for compatibility reasons. See the browser compatibility section those that don't.
let depth = window.screen.pixelDepth
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/pixelDepth
Property. Returns the bit depth of the screen. Per the CSSOM, some implementations 24 for compatibility reasons. See the browser compatibility section those that don't. `let depth = window.screen.pixelDepth` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/pixelDepth`
(set-top! this val)
Property.
[Non Standard]
Returns the distance in pixels from the top side of the current
let top = window.screen.top;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/top
Property. [Non Standard] Returns the distance in pixels from the top side of the current `let top = window.screen.top;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/top`
(set-width! this val)
Property.
Returns the width of the screen.
lWidth = window.screen.width
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/width
Property. Returns the width of the screen. `lWidth = window.screen.width` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/width`
(top this)
Property.
[Non Standard]
Returns the distance in pixels from the top side of the current
let top = window.screen.top;
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/top
Property. [Non Standard] Returns the distance in pixels from the top side of the current `let top = window.screen.top;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/top`
(unlock-orientation this)
Method.
[Deprecated]
The Screen.unlockOrientation() method removes all the previous
locks set by the page/app. The ScreenOrientation.unlock()
method
be used instead.
var unlocked = window.screen.unlockOrientation();
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/unlockOrientation
Method. [Deprecated] The Screen.unlockOrientation() method removes all the previous locks set by the page/app. The `ScreenOrientation.unlock()` method be used instead. `var unlocked = window.screen.unlockOrientation();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/unlockOrientation`
(width this)
Property.
Returns the width of the screen.
lWidth = window.screen.width
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/width
Property. Returns the width of the screen. `lWidth = window.screen.width` See also: `https://developer.mozilla.org/en-US/docs/Web/API/Screen/width`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close