How do you find out the caller function in JavaScript?

by Peter Aad

JavaScript

main();

function main() {
   Hello();
}

function Hello() {
 alert("caller is " + arguments.callee.caller.toString());
}