type attribute (script)
Sets the type of scripting language to use.
In some older browsers the value of this attribute must be set, because there is no default value for this attribute.
JavaScript page for this attribute: type. You can find other example(s) there. |
Possible values:
String that sets the type of scripting language.
One of the following values:
The language is ECMAScript. | |||||||
The language is JavaScript. | |||||||
The language is Microsoft JScript. | |||||||
Same as text/vbscript. | |||||||
The language is Microsoft Visual Basic Scripting Edition. | |||||||
The language is XML. |
Default: this attribute has no default value.
Example HTML code 1:
This example illustrates the use of the type attribute:
|
|||||
<head> <script type="text/javascript" src="javascript.js"></script> </head> <body> <button onclick="HelloWorld ();">Call HelloWorld function</button> </body> |
|||||
|
|||||
Did you find this example helpful?
|
Supported by tags:
Related pages:
External links:
User Contributed Comments