Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript Comment Statement

Creates comments that are ignored by the JScript parser.

Syntax 1: JScript Comment Statement

Single-line Comment:

// comment

Syntax 2: JScript Comment Statement

Multiline Comment:

/*

comment

*/

Arguments: JScript Comment Statement

comment

The text of any comment you want to include in your script.

Syntax 3: JScript Comment Statement

//@CondStatement

Syntax 4: JScript Comment Statement

/*@

CondStatement

@*/

Arguments: JScript Comment Statement

CondStatement

Conditional compilation code to be used if conditional compilation is activated. If Syntax 3 is used, there can be no space between the "//" and "@" characters.

Remarks: JScript Comment Statement

Use comments to keep parts of a script from being read by the JScript parser. You can use comments to include explanatory remarks in a program.

If Syntax 1 is used, the parser ignores any text between the comment marker and the end of the line. If Syntax 2 is used, it ignores any text between the beginning and end markers.

Syntax 3 and Syntax 4 are used to support conditional compilation while retaining compatibility with browsers that do not support that feature. These browsers treat those forms of comments as Syntax 1 and Syntax 2 respectively.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.