Name

type — NN n/a IE 4 DOM 1

Synopsis

Read-only

An advisory about the content type of the script statements. The content type should tell the browser which scripting engine to use to interpret the script statements, such as text/javascript. The TYPE attribute may eventually replace the LANGUAGE attribute as the one defining the scripting language in which the element’s statements are written.

Example

var scriptMIMEtype = document.all.script3.type

Value

String.

Default

None.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.