The Screen interface represents a screen, usually the one on
the current window is being rendered, and is obtained using web.window.screen
.
The Screen interface represents a screen, usually the one on the current window is being rendered, and is obtained using `web.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.
The read-only web.Screen
interface's availHeight property returns
height, in CSS pixels, of the space available for Web content
the screen. Since web.Screen
is exposed on the web.Window
web.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. The read-only `web.Screen` interface's availHeight property returns height, in CSS pixels, of the space available for Web content the screen. Since `web.Screen` is exposed on the `web.Window` `web.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.
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. 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.
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. 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.
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. 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.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.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.
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. 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.
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. 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.
The lockOrientation() method of the web.Screen
interface locks
screen into a specified orientation. The web.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. The lockOrientation() method of the `web.Screen` interface locks screen into a specified orientation. The `web.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.
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. 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.
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. 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.
An event handler for the orientationchange events sent to the
object. The web.ScreenOrientation.onchange
handler should be
instead.
`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. An event handler for the orientationchange events sent to the object. The `web.ScreenOrientation.onchange` handler should be instead. `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.
The orientation read-only property of the web.Screen
interface
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. The orientation read-only property of the `web.Screen` interface 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 web.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 `web.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-height! this val)
Property.
The read-only web.Screen
interface's availHeight property returns
height, in CSS pixels, of the space available for Web content
the screen. Since web.Screen
is exposed on the web.Window
web.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. The read-only `web.Screen` interface's availHeight property returns height, in CSS pixels, of the space available for Web content the screen. Since `web.Screen` is exposed on the `web.Window` `web.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`
(set-avail-left! this val)
Property.
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. 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.
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. 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-color-depth! this val)
Property.
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. 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`
(set-height! this val)
Property.
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. 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`
(set-left! this val)
Property.
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. 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.
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. 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.
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. 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.
An event handler for the orientationchange events sent to the
object. The web.ScreenOrientation.onchange
handler should be
instead.
`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. An event handler for the orientationchange events sent to the object. The `web.ScreenOrientation.onchange` handler should be instead. `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.
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. 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.
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. 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.
The Screen.unlockOrientation() method removes all the previous
locks set by the page/app. The web.ScreenOrientation.unlock()
should be used instead.
var unlocked = window.screen.unlockOrientation();
See also: https://developer.mozilla.org/en-US/docs/Web/API/Screen/unlockOrientation
Method. The Screen.unlockOrientation() method removes all the previous locks set by the page/app. The `web.ScreenOrientation.unlock()` should 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