First of all, remember that your HTML page is divided into 2 segments, the HEAD and the BODY. You set up your page this way:

<HTML>

<HEAD>

    //Stuff about your page in general such as the title.

</HEAD>

<BODY>

    //The actual contents of your page.

</BODY>

</HTML>

In the <HEAD> area, a new pair of tags has been introduced: <SCRIPT> and </SCRIPT>

All browsers currently assume you are programming in JavaScript, but other programming languages might come along in the future. As a result, it is standard form to open your scripting area with:

<SCRIPT LANGUAGE="JavaScript">

The <!-- and --> tags are used to hide comments in HTML from the browser. Old browsers will not understand the <SCRIPT> tags, so you need to include the comment tags to keep your JavaScript from showing up on the Browser.


This is the standard open and close to the JavaScript section of your page.

<HTML>

<HEAD>
    <SCRIPT LANGUAGE="JavaScript">
        <!--Beginning of JavaScript -

            (all of your JavaScript functions)

        // - End of JavaScript - -->
    </SCRIPT>

</HEAD>

You can name your functions anything you want. I chose to name mine MsgBox, but I could have named it Kalamazu or something else.

results matching ""

    No results matching ""