| Comments
Comments can be placed anywhere in the HTML document as they are never seen by the Browser. They are used to give the author information about a section of the page, pointers or help with the script etc..
ie:
< !-- The following table must be updated -- >
< !-- This JavaScript is for the counter -- >
< !-- Increase this paramerter for more colours -- >
Comments are hidden by using < !-- at the begining of the comment and -- > at the end. This prevents the text from being viewed in the Browser.
The comment tags can also be used to disable some parts of the script.
ie:
< !--< META HTTP-EQUIV="refresh" CONTENT="6 ;url=javascript:parent.close()" >-- >
< !-- Auto popup alert start -- >
< SCRIPT >
alert("This is a Popup Alert.\r\n \r\nClick OK.");
< /SCRIPT >
< !-- Auto popup alert end -- >
*Note just a exclamation mark also works to disable a line.
< ! META HTTP-EQUIV="refresh" CONTENT="6 ;url=javascript:parent.close()" >
|