Microsoft®
JScript function Statement |
|
Language Reference |
|
Declares a new function.
function functionname( [argument1 [, argument2 [, ...argumentn ]]])
{
statements
}The function statement syntax has the following parts:
Part Description functionname The name of the function. argument1...argumentn An optional, comma-separated list of arguments the function understands. statements One or more JScript statements.
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.There is an arguments array that can be used to access the optional arguments. The arguments property allows a function to handle a variable number of arguments. The length property of the arguments object contains the number of arguments passed to the function. The individual arguments contained in the arguments object can be accessed in the same way array elements are accessed.
© 1996 by Microsoft Corporation.
file: /Techref/language/asp/js/206.htm, 2KB, , updated: 2003/4/16 13:20, local time: 2024/11/25 10:48,
3.144.235.141:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/Techref/language/asp/js/206.htm"> Microsoft® JScript Language Reference </A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.