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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access