By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,986 Members | 1,905 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,986 IT Pros & Developers. It's quick & easy.

How to get the total number of link clicks and display it ?

P: 7
Does anyone know how can I get the total number of clicks for a specific link and display that value with jquery?

example:
I have this link in my webpage
Expand|Select|Wrap|Line Numbers
  1. <a  href="#" > Test </a>
when clicked, the total number of clicks displayed beside it.
Feb 3 '14 #1
Share this Question
Share on Google+
5 Replies


Dormilich
Expert Mod 5K+
P: 8,639
you need a function that will be attached as the link’s click handler and which will update and display a counter.
Feb 3 '14 #2

P: 7
yes @Dormilich, But how to write this function ?
Feb 3 '14 #3

Dormilich
Expert Mod 5K+
P: 8,639
how much experience do you have coding JavaScript?
Feb 3 '14 #4

P: 7
good and Thanks for the help
Feb 3 '14 #5

Dormilich
Expert Mod 5K+
P: 8,639
I can recommend this site.
Feb 3 '14 #6

Post your reply

Sign in to post your reply or Sign up for a free account.