Embed type Property

❮ Embed Object

Example

Return the MIME type of the embedded content:

var x = document.getElementById("myEmbed").type;
Try it Yourself »

Description

The height property sets or returns the value of the type attribute in an <embed> element.

The type attribute specifies the MIME type of the embedded content.


Browser Support

Property
type Yes Yes Yes Yes Yes

Syntax

Return the type property:

embedObject.type

Set the type property:

embedObject.type = MIME_type

Property Values

Value Description
MIME_type The MIME type of the embedded content.
Look at IANA MIME types for a complete list of standard MIME types.

Technical Details

Return Value: A String, representing the MIME type of the embedded content

Related Pages

HTML reference: HTML <embed> type attribute


❮ Embed Object
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.