JavaScript Tutorial/Language Basics/SCRIPT Tag

Материал из Web эксперт
Перейти к: навигация, поиск

<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/>.
        <title>Title of Page</title>
        <script language="JavaScript">
            function sayHi() {
        <script language="JavaScript">
            <P>Your browser doesn"t support JavaScript. If it did support
JavaScript, you would see this message: Hi!</p>
        <P>After noscript.</p>