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 561335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:26:21+00:00 2026-05-13T12:26:21+00:00

I want to chck which elements in my page are clickable, meaning that they

  • 0

I want to chck which elements in my page are clickable, meaning that they either have href attribute (which is easy to check), or they have click event binded to them via JS . is there any way to do so ?

  • 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-13T12:26:22+00:00Added an answer on May 13, 2026 at 12:26 pm

    using the solution provided for this question: How to debug JavaScript/jQuery event bindings with Firebug (or similar tool)

    i think this may be what you need:

    <html>
    <head>
       <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.min.js" type="text/javascript"></script
    </head>
    <body>
        <a href="test">test link</a>
        <span>test span</span>
    <script type="text/javascript">
    $.fn.listHandlers = function(events, outputFunction) {
        return this.each(function(i){
            var elem = this,
                dEvents = $(this).data('events');
            if (!dEvents) {return;}
            $.each(dEvents, function(name, handler){
                if((new RegExp('^(' + (events === '*' ? '.+' : events.replace(',','|').replace(/^on/i,'')) + ')$' ,'i')).test(name)) {
                   $.each(handler, function(i,handler){
                       outputFunction(elem, '\n' + i + ': [' + name + '] : ' + handler );
                   });
               }
            });
        });
    };
    
    
    $("span").click(function(){ alert("test");});
    
    var clickableObjects = [];
    $(document).ready(function(){
        $('*').listHandlers('click',function(element,data){
            clickableObjects.push(element);
        }).filter("a").each(function(index, value){
            clickableObjects.push(value);
        });
    
    });
    
    
    </script>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

want to have a Hyperlink-Button in a gridView in which I can display a
Want to make a confirm box appear before someone leave my site. They have
Want to know which CSS styles are currently being used on a web page.
Want to sort Nulls and Blanks last and have read all the solutions that
I have a batch file that will check for updates within a directory then
Want to have a ssl C# server that will only send and receive small
Want to run javascript function from parent window in child window Example I have
want that the navigation menu moves up & content moves left when the sidebar
Want to show nicely formatted output regarding bandwidth speed during download I have this
Want to inject a dao that has a configured data source injected into it..

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.