0

I have a button or anything else in a webpage what I can click on. When I click on it, a JQuery function will be invoked.

I use Google Chrome 44. In Chrome DevTools how can I find out which Javascript function was invoked?

1 Answer 1

2

Try defining event handler as named function , log event.handleObj.handler to console . See also Elements -> Event Listeners console

function doStuff(e) { console.log(e, e.handleObj.handler) } $("button").on("click", doStuff);
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"> </script> <button>click</button>

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.