Tipo di oggetto Proprietà
Esempio
Ottieni il tipo di supporto dell'oggetto:
var x =
document.getElementById("myObject").type;
Definizione e utilizzo
La proprietà type imposta o restituisce il valore dell'attributo type di un elemento <object>.
L'attributo type specifica il tipo di supporto Internet (precedentemente noto come tipo MIME) dell'oggetto.
Supporto browser
Property | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
Sintassi
Restituisce la proprietà del tipo:
objObject.type
Imposta la proprietà del tipo:
objObject.type = media_type
Valori di proprietà
Value | Description |
---|---|
media_type |
Specifies the Internet media type of the embedded content. Look at IANA Media Types for a complete list of standard media types. |
Dettagli tecnici
Valore di ritorno: | Una stringa, che rappresenta il tipo di supporto Internet del contenuto incorporato |
---|
Pagine correlate
Riferimento HTML: attributo di tipo HTML <oggetto>
❮ Oggetto Oggetto