type

type property

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

Syntax

JScript
object.type = sType
sType = 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

 

 

Show:
© 2016 Microsoft