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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:12:16+00:00 2026-06-14T14:12:16+00:00

How we count only one user how much time click on link to given

  • 0

How we count only one user how much time click on link to given all links and how we display the total clicked by that user if that he Complete 10 clicked on given links to open another window to accept a some text data for him and save it.

  • 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-14T14:12:17+00:00Added an answer on June 14, 2026 at 2:12 pm

    try this code :

    <html>
    <head>
    </head>
    <body>
    <a href="javascript:void(0)" onclick="countTenClicks()">Click 10 times to open window
    </a>
    <script>
    
        var counter = 0;
        function countTenClicks() {
            if (counter > 9) {
                window.open('http://www.google.com');
            }
            else {
                counter++;
            }
    
        }
    
    </script>
    

    Edit

    <html>
     <head>
    <title></title>
     </head>
     <body>
    <a href="javascript:void(0)" onclick="countTenClicks(this)" id='link1'>Click 10 times
        to open window link1</a> <a href="javascript:void(0)"    onclick="countTenClicks(this)"
            id='link2'>Click 10 times to open window link2 </a>
    <script type="text/javascript">
    
    var link1_counter=0;
    var link2_counter=0;
    /*
      repeate for 10 links
    
       var for each link
    */
    function countTenClicks(sender){
    
      var linkID = sender.id;
     switch(linkID)
      {
      case link1:
      if (link1_counter>9)
     {
     window.open('http://www.google.com');
     }
      else
     {
     link1_counter++;
     }
      break;
     case link1:
      if (link2_counter>9)
      {
       window.open('http://www.google.com');
      }
    else
     {
     link2_counter++;
     }
      break;
    /*
     repeate for 10 links
    */
    
    default:
    code to be executed if n is different from case 1 and 2
    }
    
    }
    
    </script>
    

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

Sidebar

Related Questions

Until recently, I believed that the .NET runtime only increases the reference count of
Initially i have a table view with only one add button. when user press
I have a couple of links on an in-progress website that will display what
NewBie Androider here. I am writing a code in which user enters only one
When I load my mapView I have only one tick - user location. After
I have one table, assume that there are 2 users, user A and user
hi i am doing one app here.user click button once means in another activity
I want to add row to table by user click, not when do that
How do I count only the files in a directory? This counts the directory
Am I correct in saying: COUNT(expr) WHERE expr IS NOT * Will count only

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.