HTML and CSS Reference
In-Depth Information
Table B.14. Storage event object
Attribute/method
Description
key
The key of the item that was modified
oldValue
The previous value of the modified item
newValue
The new value of the modified item
url
The address of the document that contains the item
storageArea
The storage object in which the change was made
The methods in tableB.15 apply to localStorage , sessionStorage , and to cookies
created using the document.cookie API. It's available on the window.navigator ob-
ject.
Table B.15. Another storage method
Attribute/method
Description
Allows scripts to access storage areas, even if other scripts are currently blocking those
areas.
yieldForStorageUpdates()
B.1.7. Media Element API
The Media Element API, shown in table B.16 , is implemented by both the <audio> and
<video> elements.
Table B.16. Media Element API
Attribute/method
Description
autoplay
Corresponding DOM attribute to the autoplay content attribute.
Returns a TimeRanges object (an array of start and end times) that represents the ranges
of the media resource that the browser has buffered.
buffered
Accepts a MIME type, for example, video/webm, and returns a value indicating whether
or not the browser thinks it will be able to play media of that type. The possible return
values, in decreasing order of certainty, are 'probably', 'maybe', and an empty string.
canPlayType(type)
controller
The MediaController object associated with the element's mediagroup.
controls
Corresponding DOM attribute to the controls content attribute.
Reflects the value of the crossorigin content attribute. This setting is for Cross Origin Re-
source Sharing (CORS). The value can be either anonymous or use-credentials, depend-
ing on whether the omit credentials flag should be set or unset in the CORS headers.
crossOrigin
currentSrc
The address of the currently playing media.
 
 
 
Search WWH ::




Custom Search