You cannot call the function multFun in an object's event handler property, because event handler properties cannot take arguments. Examples Example 1. The following example creates onFocus and onBlur event handlers for a frame. You can determine whether a function exists by comparing the function name to null. Notice that the window name is needed when referring to the function name noFunc .
Properties arguments An array corresponding to the arguments passed to a function.
You can call a function with more arguments than it is formally declared to accept by using the arguments array. This technique is useful if a function can be passed a variable number of arguments. You can use arguments.length to determine the number of arguments passed to the function, and then treat each argument by using the arguments array. The arguments array is available only within a function declaration. Attempting to access the arguments array outside a function declaration results in an error.