HTML comment that hides the script. : JavaScript in HTML « Development « JavaScript DHTML






HTML comment that hides the script.


/*
Examples From
JavaScript: The Definitive Guide, Fourth Edition

Legal matters: these files were created by David Flanagan, and are
Copyright (c) 2001 by David Flanagan.  You may use, study, modify, and
distribute them for any purpose.  Please note that these examples are
provided "as-is" and come with no warranty of any kind.

David Flanagan
*/

<script language="JavaScript">
<!-- Begin HTML comment that hides the script.
        // JavaScript statements go here.
        //              .
        //              .
// End HTML comment that hides the script. -->
</script>


           
       








Related examples in the same category

1.JavaScript Embedded in an HTML File
2.Using HTML Comments to Hide JavaScript Code
3.Embedding JavaScript in HTML
4.Inserting Source JavaScript Files
5.Using the Head for Definitions
6.A Basic JavaScript Starter Document
7.JavaScript Template File
8.Embedding a JavaScript Function