Results 321 - 340 of 1,243

Range.toString()

The Range.toString() method is a stringifier returning the text of the Range.
API DOM Method Range Stringifier

Screen.mozEnabled

This Boolean attribute controls the device's screen. Setting it to false will turn off the screen.
API DOM Property Reference Référence

Touch.screenX

Returns the X coordinate of the touch point relative to the screen, not including any scroll offset.
API DOM Mobile Property touch

Touch.screenY

Returns the Y coordinate of the touch point relative to the screen, not including any scroll offset.
API DOM Mobile Property touch

UIEvent

The UIEvent interface represents simple user interface events.
API DOM Event Interface Reference

Window.home()

Returns the window to the home page.
API DOM Gecko Method NeedsCompatTable

Window.postMessage()

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.
API DOM Method Reference Référence

Window.setImmediate()

This method is used to break up long running operations and run a callback function immediately after the browser has completed other operations such as events and display updates.
API DOM Method Reference Référence

WindowBase64

The WindowBase64 helper contains utility methods to convert data to and from base64, a binary-to-text encoding scheme. For example it is used in data URIs.
API Helper HTML-DOM WindowBase64

XPathExpression

An XPathExpression is a compiled XPath query returned from document.createExpression(). It has a method evaluate() which can be used to execute the compiled XPath.
Document DOM NeedsUpdate XML XPath

Attr.localName

The Attr.localName read-only property returns the local part of the qualified name of an element.
API DOM NeedsBrowserCompatibility NeedsMobileBrowserCompatibility Property Reference

Attr.namespaceURI

The Attr.namespaceURI read-only property returns the namespace URI of the attribute, or null if the element is not in a namespace.
API DOM NeedsBrowserCompatibility NeedsMobileBrowserCompatibility Property Reference

Attr.prefix

The Attr.prefix read-only property returns the namespace prefix of the specified attribute, or null if no prefix is specified.
API DOM NeedsBrowserCompatibility NeedsMobileBrowserCompatibility Property Reference

Blob.type

The type property of a Blob object provides the MIME type of the file. It returns an empty string if the type couldn't determined.
API DOM File Files Property Reference

Drawing DOM objects into a canvas

Although it's not trivial (for security reasons), it's possible to draw DOM content—such as HTML—into a canvas. This article, derived from this blog post by Robert O'Callahan, covers how you can do it securely, safely, and in accordance with the specification.
Canvas DOM Guide HTML Intermediate SVG