Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6531263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:51:24+00:00 2026-05-25T09:51:24+00:00

Lets suppose I’ve a link on my page: <a href=# id=foo>Click Here</a> I don’t

  • 0

Lets suppose I’ve a link on my page:

<a href="#" id="foo">Click Here</a>

I don’t know anything else, but when I click on the link, an alert("bar") is displayed.
So I know that somewhere, some code is getting bound to #foo.

How can I find the code that is binding the alert("bar") to the click event?
I’m looking for a solution with Chrome.

Ps.: The example is fictive, so I’m not looking for solution like: “Use XXXXXX and search the whole project for “alert(\”bar\”)”. I want a real debugging/tracing solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:51:25+00:00Added an answer on May 25, 2026 at 9:51 am

    Using Chrome 15.0.865.0 dev. There’s an “Event Listeners” section on the Elements panel:

    enter image description here

    And an “Event Listeners Breakpoints” on the Scripts panel. Use a Mouse -> click breakpoint and then “step into next function call” while keeping an eye on the call stack to see what userland function handles the event. Ideally, you’d replace the minified version of jQuery with an unminified one so that you don’t have to step in all the time, and use step over when possible.

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets suppose that I have some pages some.web/articles/details/5 some.web/users/info/bob some.web/foo/bar/7 that can call a
lets suppose we have a sample.jsp page: <%@ taglib prefix=custom tagdir=/WEB-INF/tags %> ... <custom:do
Lets suppose that I have the following simple query var q = from p
Lets suppose that I have a Category table with a column that holds the
Let's suppose I have an applet running within a page in a browser. What
Lets Suppose we have 251 Items in stock and we want to convert it
Lets suppose i am in a local ABC with branches branch_A and branch_B .
Lets suppose I made a class called Person. var Person = function(fname){this.fname = fname;};
Lets suppose that $(document).height() is 1000. Then i insert a new div at the
Lets suppose, there are 4 popups in my application and a viewer presses Escape

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.