1

I have a common error function which is called from many places. I want to know from which function this was called. Is there any way to do it?

Kara
  • 5,996
  • 16
  • 49
  • 56
user2682527
  • 229
  • 2
  • 3
  • 12

2 Answers2

0

In any javascript function you can use

 arguments.callee.caller
Murali Murugesan
  • 21,923
  • 17
  • 67
  • 118
0

if You want to execute JS in chrome you have to do like this

go to console and type your JS and enter!

Illaya
  • 666
  • 6
  • 14