type property

Sets or gets the MIME type of the media object referenced by the SRC attribute.

Syntax

JScript
object.type = sTypesType = object.type

 

Property values

Type: String

the MIME type of the media associated with the element.

Remarks

By default, the server should send the MIME type to the user agent. If that mechanism fails, the MIME type is obtained from this property.

This property cannot be modified in script after the onload event fires on the document body.

See also

animation

audio

img

media

ref

video

Introduction to HTML+TIME