Online Software Educational Training - IT Tutorials - Online Education Training for Computer Software


Home

JAVA SCRIPT

Hiding JavaScript

     

    <html>
    <head>
    <title> blah blah blah </title>

    <script language="JavaScript">

    <!-- hide this stuff from other browsers

    YOUR SCRIPT HERE

    // end the hiding comment -->

    </script>

    </head>
    <body>
    etc., etc., etc.

The reasons why this trick works evaded me for a while, and you can use it without understanding why it works. However, if you really want to know, here's why the comment trick works.

<Previous                                                                                                      Next>