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
  • 6,115
  • 16
  • 50
  • 57
user2682527
  • 229
  • 2
  • 3
  • 12

2 Answers2

0

In any javascript function you can use

 arguments.callee.caller
Murali Murugesan
  • 22,423
  • 17
  • 73
  • 120
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