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

 

JScript function Statement

Declares a new function.

Syntax: JScript function Statement

function functionname([argument1 [, argument2 [, ...argumentn]]])

{

statements

}

Arguments: JScript function Statement

functionname

The name of the function.

argument1...argumentn

An optional, comma-separated list of arguments the function understands.

statements

One or more JScript statements.

Remarks: JScript function Statement

Use the function statement to declare a function for later use. The code contained in statements is not executed until the function is called from elsewhere in the script.

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