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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:27:00+00:00 2026-05-15T16:27:00+00:00

Presently i have the following code on one of my web page- <a href=http://ex.com

  • 0

Presently i have the following code on one of my web page-

<a href="http://ex.com" onclick="return popitup2()">Grab Coupon</a>

now I want to run one more script which is used in the following way –

onClick="recordOutboundLink(this, 'Outbound Links', 'ex.com');return false;"

Now can someone tell me how do i call both of these javacsripts when the link is clicked. Thanks in advance.

  • 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-15T16:27:00+00:00Added an answer on May 15, 2026 at 4:27 pm

    You can call the two functions in the onclick event handler:

    <a href="http://ex.com" onclick="popitup2(); recordOutboundLink(this, 'Outbound Links', 'ex.com'); return false;">Grab Coupon</a>
    

    To avoid mixing markup with javascript I would recommend you attaching the onclick event for this particular link like this:

    <a href="http://ex.com" id="mylink">Grab Coupon</a>
    

    And in the head section:

    <script type="text/javascript">
    window.onload = function() {
        var mylink = document.getElementById('mylink');
        if (mylink != null) {
            mylink.onclick = function() {
                var res = popitup2(); 
                recordOutboundLink(this, 'Outbound Links', 'ex.com');
                return res;
            };
        }
    };
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Following code create that Annotation. As described here, http://engineering.webengage.com/2012/03/12/a-peek-into-webengages-security-layer-super-cool-use-of-java-annotations /** * Defining the Asynch
I have put together the following code, the problem is that each while loop
I have made some modifications to nsMediaStream.h/cpp in the Mozilla (6.0.2) code and one
I have been trying with limited success to code a JSF application. In one
I have the following code: Note: I simplified the code as much as possible
I am going through condition variable article at following location http://software.intel.com/en-us/blogs/2010/10/01/condition-variable-support-in-intel-threading-building-blocks/ Here we have
I have the following code snippet: <div id=listbox1div style=z-index:95; background:white; overflow-y:auto; overflow-x:hidden; width:240; height:314px;>
I have the following code regarding asynchronous sockets programming: public void ServerBeginAceept(ushort ServerPort) {
I have the following code where each object is a UISwitch IBOutlet property. I'm
I have the following PHP code: $testMessage = TESTMESSAGE; $db = new SQLite3('messages.sq3'); $db->exec('CREATE

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.