Results 1 - 20 of 25

GlobalEventHandlers

The GlobalEventHandlers mixin describes the event handlers common to several interfaces like HTMLElement, Document, or Window. Each of these interfaces can implement more event handlers.
API DOM HTML-DOM Mixin Reference

GlobalEventHandlers.ondragexit

The GlobalEventHandler.ondragexit property is an event handler for the dragexit event.
API DOM HTML drag and drop Reference

HTMLFormElement

The HTMLFormElement interface provides methods to create and modify <form> elements.
document.forms - returns an array of HTMLFormElement objects referencing all forms on the page.
document.forms[index] - returns an HTMLFormElement object referencing the form at the specified index.
document.forms['id'] - returns an HTMLFormElement object referencing the form with the specified id.
document.forms['name'] - returns an HTMLFormElement object referencing the form with the specified id.
API DOM HTML Interface Reference Référence

The structured clone algorithm

The structured clone algorithm is a new algorithm defined by the HTML5 specification for serializing complex JavaScript objects. It's more capable than JSON in that it supports the serialization of objects that contain cyclic graphs — objects can refer to objects that refer to other objects in the same graph. In addition, in some cases, the structured clone algorithm may be more efficient than JSON.
Advanced DOM HTML5 JavaScript Reference Référence

Document.getElementsByName()

Returns a nodelist collection with a given name in the (X)HTML document.
API Document DOM HTML Method NeedsCompatTable NeedsMarkupWork Reference Référence

HTMLIFrameElement.contentWindow

The contentWindow property returns the Window object of an <iframe> element. You can use this Window object to access the iframe's document and its internal DOM. This attribute is read-only, but its properties can be manipulated like the global Window object.
API DOM HTML DOM Property Read-only Reference Référence Web

HTMLMediaElement

The HTMLMediaElement interface adds to HTMLElement the properties and methods needed to support basic media-related capabilities that are common to audio and video. The HTMLVideoElement and HTMLAudioElement elements both inherit this interface.
API DOM HTML HTMLMediaElement Interface Media NeedsNewLayout Reference

HTMLSelectElement.selectedIndex

The HTMLSelectElement.selectedIndex is a long that reflects the index of the first selected <option> element. The value -1 indicates that no element is selected.
API HTML DOM HTML forms HTMLSelectElement NeedsBrowserCompatibility NeedsMobileBrowserCompatibility Property Reference

HTMLVideoElement

The HTMLVideoElement interface provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement.
API DOM HTML DOM HTMLVideoElement Interface Reference Video video

NavigatorID

The NavigatorID interface contains methods and properties related to the identity of the browser.
API HTML DOM HTML-DOM Interface Navigator NavigatorID Reference

DataTransferItem

The DataTransferItem object represents one drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object.
API DataTransferItem drag and drop HTML DOM HTML Drag and Drop API Interface Reference

DataTransferItem.getAsFile()

If the item is a file, the DataTransferItem.getAsFile() method returns the drag data item's File object. If the item is not a file, this method returns null.
API DataTransferItem drag and drop HTML DOM HTML Drag and Drop API Method Reference

DataTransferItem.getAsString()

The DataTransferItem.getAsString() method invokes the given callback with the drag data item's string data as the argument if the item's kind is a Plain unicode string (i.e. kind is string).
API DataTransferItem drag and drop getAsString HTML DOM HTML Drag and Drop API Method Reference

DataTransferItem.kind

The read-only DataTransferItem.kind property returns a DataTransferItem representing the drag data item kind: some text or some file.
API DataTransferItem drag and drop HTML DOM HTML Drag and Drop API kind Property Reference

DataTransferItem.type

The read-only DataTransferItem.type property returns the type (format) of the DataTransferItem object representing the drag data item. The type is a Unicode string generally given by a MIME type, although a MIME type is not required.
API DataTransferItem drag and drop HTML DOM HTML Drag and Drop API Property Reference Type

DataTransferItemList

The DataTransferItemList object is a list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList.
API DataTransferItemList drag and drop HTML DOM HTML Drag and Drop API Interface Reference

DataTransferItemList.add()

The DataTransferItemList.add() method creates a new DataTransferItem using the specified data and adds it to the drag data list. The item may be a File or a string of a given type. If the item is successfully added to the list, the newly-created DataTransferItem object is returned.
Add API DataTransferItemList drag and drop HTML DOM HTML Drag and Drop API Method NeedsLiveSample Reference

DataTransferItemList.clear()

The DataTransferItemList.clear() method removes all DataTransferItem objects from the drag data items list, leaving the list empty.
API clear DataTransferItemList drag and drop HTML DOM HTML Drag and Drop API Method NeedsLiveSample Reference

DataTransferItemList.DataTransferItem()

The DataTransferItemList() getter method implements support for accessing items in the DataTransferItemList using array-style syntax (that is DataTransferItemList[index]).
API DataTransferItemList drag and drop Getter HTML DOM HTML Drag and Drop API Method NeedsLiveSample Reference