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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:17:14+00:00 2026-06-15T19:17:14+00:00

I have a page where users see this anchor… <a href=javascript:launchSomething(1, 2, 1)>Test</a> Is

  • 0

I have a page where users see this anchor…

<a href="javascript:launchSomething("1", "2", "1")">Test</a>

Is it possible to execute/call launchSomething(.....) function without having the user to click it? If the params were fixed values then I could just do something like …

//on document.ready() {
//  launchSomething( .... );  
//}

but the web page is generated dynamically and these params change too so what do I need to do to trigger it automatically once the web page has loaded?

thanks for help.

UPDATE

I have just got the markup changed to

<a class="click1" href="javascript:launchSomething('1', '2', '1')">Test</a>

so it always has a class “click1”

  • 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-06-15T19:17:15+00:00Added an answer on June 15, 2026 at 7:17 pm

    You can do this by dynamically generating an attribute for your links:

    foreach ($rows as $row) {
        echo '<a class="mylink" data-id=\''.$row['id'].'\'>Test </a>'; 
    }
    

    You can then bind this as the click handler for your link:

    $('.mylink').click(function(){
        launchSomething($(this).data('id'));
    });
    

    To invoke the handler for a specific link, you could use:

    $('.mylink[data-id="someID"]').click();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web page where users can see data from MongoDB on a
I have a page that shows statistics for users, this cannot be cached because
Imagine that HTML page is a game surface (see picture). User can have n
I have a page where users can select different documents files in a datalist
There is a need to have a takeover page when users visits the website
I'm new to using SugarCRM. I want to have a users page that does
I have a html page that allows users to submit a file. Below is
I have a page on my site that lets users respond to invites by
I have a page which list comments of users. My problem is that I
I have a jqGrid on a page and users can click a button to

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.