Skip to content Skip to sidebar Skip to footer

Javascript : How Could I Get Callee Id In Javascript?

How could I get callee id in javascript I am creating dynamic gridview from .cs adding templates to gridview as per requirement. In which first headercolumn is having checkbox. I w

Solution 1:

You'll want the source of the click event. Make sure the event is sent in the clickhandler (as in onclick="myClickHandler(event)"), then:

functionmyClickHandler(evt){
  var sourceElement = evt.srcElement || evt.target;
  /* do things */
}

Solution 2:

It depends on the browser.

Microsoft will use window.event.srcElement to handle a reference to the object that fired an event.

W3C support browsers will pass the reference as an argument to the event handler.

Try this.

Post a Comment for "Javascript : How Could I Get Callee Id In Javascript?"