August 1999
Intermediate to advanced
1488 pages
72h 53m
English
arguments.caller
The caller property of the Arguments object contains the Arguments object of the calling function. If the given function was not executed from within another function, null is stored in this property.
Listing 6.45 creates two functions. One displays an individual's favorite food in an alert box, while the other displays the number of arguments associated with the calling function. Anytime a button is clicked, an alert box displays the favorite food. This function then calls the second function to display an alert box saying there were two arguments passed into the first function.
<html> ... |
Read now
Unlock full access