Source type-eigenschap
Definitie en gebruik
type
Stel of geef de waarde van de type-eigenschap van het <source>-element in.
type-eigenschap van <source> Definieert het MIME-type van de mediabron.
Zie ook:
HTML reference manual:HTML <source> tag
Voorbeeld
Geef het MIME-type van de mediabron terug:
var x = document.getElementById("mySource").type;
Syntax
Geef de type-eigenschap terug:
sourceObject.type
Stel de type-eigenschap in:
sourceObject.type = MIME_type
Eigenschapswaarde
Waarde | Beschrijving |
---|---|
MIME_type |
Definieert het MIME-type van de mediabron. Veelvoorkomende MIME-typen: Voor video:
Voor audio:
Please see IANA MIME types, to get a complete list of standard MIME types. |
Technical details
Return value: | A string value representing the MIME type of the media resource. |
---|
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |
Related pages
HTML reference manual:HTML <source> type attribute