Language Reference |
Declares a new function.
function functionname( [argument1 [, argument2 [, ...argumentn ]]])
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 14:20, local time: 2019/8/19 22:27,
|©2019 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://www.sxlist.com/techref/language/asp/js/206.HTM"> Microsoft® JScript Language Reference </A>
|Did you find what you needed?|
Welcome to sxlist.com!
& kind contributors
just like you!
Please don't rip/copy
Copies of the site on CD
are available at minimal cost.
Welcome to www.sxlist.com!