कॉलर फ़ंक्शन खोजने के लिए, आपको नॉन-स्टैंडर्ड फीचर "function.caller" का उपयोग करना होगा। पहले, "arguments.caller" प्रॉपर्टी पर विचार किया जाता था, जो अब अप्रचलित है।
उदाहरण
<html>
<head>
<script type="text/javascript">
function Display() {
alert("caller is " + Display.caller);
}
</script>
</head>
<body>
<p>निम्नलिखित बटन पर क्लिक करें:</p>
<form>
<input type="button" onclick="Display()" value="Get caller function">
</form>
</body>
</html>