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

  • Home
  • SEARCH
  • 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 551671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:25:07+00:00 2026-05-13T11:25:07+00:00

I see some anchor elements on an html page like so <a href=javascript:void(0); class=clickable>Click

  • 0

I see some anchor elements on an html page like so

<a href="javascript:void(0);" class="clickable">Click me</a>;

The page assigns JavaScript event handlers to the anchor element on page load. After the page loads, I can click on the anchor element to fire a JavaScript operation.

I want to programmatically fire the anchor’s event handler function, but I am unable to determine the event handler’s function name because the relevant external JavaScript file is compressed, so it’s difficult to trace the code. The compression obfuscated all the variable/function names and put everything on one line.

Can anyone suggest a way for me to programmatically fire the anchor’s onclick event handler?

Thanks

  • 1 1 Answer
  • 1 View
  • 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-13T11:25:08+00:00Added an answer on May 13, 2026 at 11:25 am

    To answer the question in your title: no, you can’t. You can’t get the name because there might not even be a name – it’s become quite common to use anonymous functions for this purpose.

    For the answer to your second question, see:

    How can I programmatically invoke an onclick() event from a anchor tag while keeping the ‘this’ reference in the onclick function?

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

Sidebar

Related Questions

I have a simple .html page which uses Javascript to display some popups. Now
I see some URLs like this: http://www.example.com/?view=profile&id=098&hash=589e8bed895198495d987d055699d2b9 Why some sites add ID and hashed
I see some frameworks like Django using unicode all over the place so it
I see some apps like 'Lock Calendar' that include this feature, and I know
So I'm appending some elements with jQuery that contain href that calls another script
I'm trying to track down some javascript that is running when an anchor tag
I see some code that looks like this: if(@$_POST['myvar']) What does the @ sign
I have some HTML that looks something like this: <div id=zoomed style=display:none; position:absolute;> <a
I see some code exp_send -i $bash_id /bin/tcsh , what does the -i flag
I see some resources for gcc, but not for Visual Studio. Anyone have a

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.