<script> : script statements
The SCRIPT element places a script within a document. This element may appear any number of times in the HEAD or BODY of an HTML document.
Attributes
-) src
This attribute specifies the location of an external script.
-) type
This attribute specifies the scripting language of the element's contents and overrides the default scripting language. The scripting language is specified as a content type (e.g., "text/javascript"). Authors must supply a value for this attribute. There is no default value for this attribute.
-) language
Deprecated. This attribute specifies the scripting language of the contents of this element. Its value is an identifier for the language, but since these identifiers are not standard, this attribute has been deprecated in favor of type.
-) defer
When set, this boolean attribute provides a hint to the user agent that the script is not going to generate any document content (e.g., no "document.write" in javascript) and thus, the user agent can continue parsing and rendering.
Example
<script language="JavaScript" type="text/JavaScript">
<!--
function f_alert()
{
alert ("hello");
}
-->
</script>
<button onclick="f_alert()"> push me </button>