Latest web development tutorials

HTML DOM Track default properties

Track Object Reference Track Objects

Examples

Gets the default state for a track:

var x = document.getElementById ( "myTrack") default.;

x The output is:

false


Definition and Usage

default attribute is used to set or return to the default state of the track.

This property reflects the <track> default properties.

If you use the default attribute, you should use the provisions of the tracks, if the user does not select the other tracks words.

Note: You can not have more than one element of the track rail element of each media element can have only one default property. T


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer, Opera, and Chrome browser support srclang property.

Note: Firefox, Safari or Internet Explorer 9 and earlier versions do not support IE srclang property.


grammar

Returns default attributes:

trackObject .default

Set default properties:

trackObject .default = true | false

Property Value

value description
true | false The default state of the rail track
  • true - enabled track
  • false - default. Disable Track

technical details

return value: Boolean value that indicates the default state of the track


More examples

Examples

Setting track default:

. Document.getElementById ( "myTrack") default = true;



Related Pages

HTML Reference Manual: HTML <Track> default properties


Track Object Reference Track Objects