Name

TYPE — NN n/a IE 4 HTML 4

Synopsis

TYPE=”elementType"

Required

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. The TYPE attribute may eventually replace the LANGUAGE attribute as the one defining the scripting language in which the element’s statements are written. To be compatible with future and past browsers, you may include both the LANGUAGE and TYPE attributes in a SCRIPT element.

Example

<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
...
</SCRIPT>

Value

Case-insensitive MIME type. Values are limited to one(s) for which a particular browser is equipped.

Default

text/javascript in Internet Explorer 4.

Object Model Reference

IE

[window.]document.all.elementID.type

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.