Callee property in javascript

Here we will be discuss about the Callee property in javascript.It is used to specify the body text of the current function being executed.

For Ex:

  <title> New Document </title>
   <script language="JavaScript">
    function chkCallee()
      var txt = arguments[0].value;
      txt += arguments[1];

  <input type="button" value="First" OnClick=chkCallee(this,"Grade")>
    <input type="button" value="Second" OnClick=chkCallee(this,"Grade")>
    <input type="button" value="Third" OnClick=chkCallee(this,"Grade")>

The output will be:


When we click on the first button

Ebook Download
View all
View all