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/12/22 09:29,
3.145.37.211: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://sxlist.com/techref/language/asp/js/206.HTM"> Microsoft® JScript Language Reference </A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.