Callee property in javascript

Introduction 

 
Here we will be discussing the Callee property in javascript. It is used to specify the body text of the current function being executed.
 
For Ex:
  1. <html>  
  2.   
  3.      <head>  
  4.           <title> New Document </title>  
  5.           <script language="JavaScript">  
  6.                function chkCallee()  
  7.                {  
  8.                     var txt = arguments[0].value;  
  9.                     txt += arguments[1];  
  10.                     alert(txt);  
  11.                     document.write(arguments.callee.toString());  
  12.                }  
  13.           </script>  
  14.      </head>  
  15.   
  16.      <body>  
  17.           <input type="button" value="First" OnClick=chkCallee(this,"Grade")>  
  18.           <input type="button" value="Second" OnClick=chkCallee(this,"Grade")>  
  19.           <input type="button" value="Third" OnClick=chkCallee(this,"Grade")>  
  20.      </body>  
  21.   
  22. </html>  
The output will be:

1.png      
 
When we click on the first button
         2.png
 
3.png