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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:34:48+00:00 2026-05-14T19:34:48+00:00

say there is an element #button with the attribute onmousedown containing some random javascript

  • 0

say there is an element #button with the attribute onmousedown containing some random javascript how could I trigger the js in that element attribute using jQuery?

j("#otherbutton").click(function(){ 
         var script =  j("#button").attr("onmousedown"); //what now? 
});
  • 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-14T19:34:49+00:00Added an answer on May 14, 2026 at 7:34 pm

    Or j("#button").trigger("mousedown"); which will execute the code in the onmousedown attribute and any event handlers attached to the “mousedown” event.

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

Sidebar

Ask A Question

Stats

  • Questions 534k
  • Answers 534k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Your question is unclear ("appending codes"? "HashMap"?), but I'll assume… May 17, 2026 at 12:47 am
  • Editorial Team
    Editorial Team added an answer As i suspect first only close connection, and second close… May 17, 2026 at 12:46 am
  • Editorial Team
    Editorial Team added an answer I'd suggest putting the data in Session as opposed to… May 17, 2026 at 12:46 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Lets say there is a form with a submit button. I found out that
Say you in JavaScript are handed a single DOM element or Document (for example
Lets say that I have a element reference obtained ala... var x=document.getElementById(ID123); Now I
There was a thread on this in comp.lang.javascript recently where victory was announced but
this is xml let say: <.Sections> <.SECTION ID =4 NAME=GetStudents CONTROL-TYPE=Button LINK=WebForm2.aspx> </SECTION> <.SECTION
I have a container element say <div id=myContainer> <form action= method=post> Radio: <input type=radio
Simply put! there is this list say LST = [[12,1],[23,2],[16,3],[12,4],[14,5]] and i want to
Is it possible to select, say, every fourth element in a set of elements?
I'm building a tool that authors/edits XML files, and I want to be able
I'm trying to track down a bug that occurs when I click a particular

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.