August 1999
Intermediate to advanced
1488 pages
72h 53m
English
arguments.callee
The callee property of the Arguments object contains the function that is currently executing. This is useful if the function has no name.
In Listing 6.44, a function is created to display a individual's favorite food in an alert box. The function is called when the buttons are clicked. The code that makes up the executing function is displayed using the callee property.
<html> Learn what functions are used when you press the buttons below that represent a person's favorite food! <form> <input type="button" value="Meredith" OnClick=displayFood(this,"pizza")> <input type="button" ... |
Read now
Unlock full access