Results 401 - 420 of 631

Media formats supported by the HTML audio and video elements

The <audio> and <video> elements provide support for playing audio and video media without requiring plug-ins. Video codecs and audio codecs are used to handle video and audio, and different codecs offer different levels of compression and quality. A container format is used to store and transmit the coded video and audio (both together, the case of a video with a soundtrack). Many combinations of codecs and container formats exist, although only a handful of these are relevant on the Web.
file formats Firefox HTML HTML5 Media media formats Reference Video video

DataTransfer.clearData()

The DataTransfer.clearData() method removes the drag operation's drag data for the given type. If data for the given type does not exist, this method does nothing.
API clearData DataTransfer drag and drop HTML DOM Method Reference

DataTransfer.dropEffect

The DataTransfer.dropEffect property controls the feedback (typically visual) the user is given during a drag and drop operation. It will affect which cursor is displayed while dragging. For example, when the user hovers over a target drop element, the browser's cursor may indicate which type of operation will occur.
API drag and drop HTML DOM Property Reference

DataTransfer.effectAllowed

The DataTransfer.effectAllowed property specifies the effect that is allowed for a drag operation. The copy operation is used to indicate that the data being dragged will be copied from its present location to the drop location. The move operation is used to indicate that the data being dragged will be moved, and the link operation is used to indicate that some form of relationship or connection will be created between the source and drop locations.
API drag and drop HTML DOM Property Reference

DataTransfer.files

The DataTransfer.files property is a list of the files in the drag operation. If the operation includes no files, the list is empty.
API drag and drop HTML DOM Property Reference

DataTransfer.getData()

The DataTransfer.getData() method retrieves drag data (as a DOMString) for the specified type. If the drag operation does not include data, this method returns an empty string.
API drag and drop HTML DOM Method Reference

DataTransfer.items

The DataTransfer.items property is a list of the data transfer items in a drag operation. The list includes one item for each item in the operation and if the operation had no items, the list is empty.
API drag and drop HTML DOM Property Reference

DataTransfer.setData()

The DataTransfer.setData() method sets the drag operation's drag data to the specified data and type. If data for the given type does not exist, it is added at the end of the drag data store, such that the last item in the types list will be the new type. If data for the given type already exists, the existing data is replaced in the same position. That is, the order of the types list is not changed when replacing data of the same type.
API drag and drop HTML DOM Method Reference

DataTransfer.setDragImage()

When a drag occurs, a translucent image is generated from the drag target (the element the dragstart event is fired at), and follows the mouse pointer during the drag. This image is created automatically, so you do not need to create it yourself. However, if a custom image is desired, the DataTransfer.setDragImage() method can be used to set the custom image to be used.
API drag and drop HTML DOM Method Reference

DataTransfer.types

The DataTransfer.types read-only property is an array of the drag data formats (as strings) that were set in the dragstart event. The order of the formats is the same order as the data included in the drag operation.
API drag and drop HTML DOM Property Reference

Document.activeElement

Returns the currently focused element, that is, the element that will get keystroke events if the user types any. This attribute is read only.
API Document HTML DOM NeedsMarkupWork Property Reference Référence

Document.anchors

anchors returns a list of all of the anchors in the document.
API Document HTML DOM NeedsCompatTable NeedsMarkupWork Property Reference Référence

Document.close()

The document.close() method finishes writing to a document, opened with document.open().
API Document HTML DOM Method NeedsCompatTable NeedsMarkupWork NeedsSpecTable Reference Référence

Document.cookie

Get and set the cookies associated with the current document. For a general library see this simple cookie framework.
API Document HTML DOM JS NeedsMarkupWork Reference storage Storage

Document.dir

The Document.dir property is a DOMString representing the directionality of the text of the document, whether left to right (default) or right to left. Possible values are 'rtl', right to left, and 'ltr', left to right.
API Document HTML DOM NeedsSpecTable Property Reference Référence