JavaScript Tutorial/Language Basics/SCRIPT Tag
Версия от 18:52, 25 мая 2010; (обсуждение)
<SCRIPT> tags
<Script> tells the browser that everything between <SCRIPT> and </SCRIPT> should be interpreted by the interpreter specified in the LANGUAGE attribute.
The browser interprets the code between the <SCRIPT> tags based on the LANGUAGE attribute.
For example, <SCRIPT LANGUAGE="JavaScript">.
It is also possible to force the interpreter to use different versions of JavaScript <SCRIPT LANGUAGE="JavaScript1.2">.
1. 4. SCRIPT Tag 1. 4. 1. <SCRIPT> tags 1. 4. 2. <A href="/Tutorial/JavaScript/0020__Language-Basics/ThenoscriptTag.htm">The <noscript/> Tag</a>
The <noscript/> Tag
Any browser that doesn"t support JavaScript or has it disabled renders the content of <noscript/>.
<html>
<head>
<title>Title of Page</title>
<script language="JavaScript">
function sayHi() {
alert("Hi");
}
</script>
</head>
<body>
<script language="JavaScript">
sayHi();
</script>
<noscript>
<P>Your browser doesn"t support JavaScript. If it did support
JavaScript, you would see this message: Hi!</p>
</noscript>
<P>After noscript.</p>
</body>
</html>