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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ahmed Na
    New Member
    • Jan 2014
    • 7

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

    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
    Code:
    <a  href="#" > Test </a>
    when clicked, the total number of clicks displayed beside it.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    you need a function that will be attached as the link’s click handler and which will update and display a counter.

    Comment

    • Ahmed Na
      New Member
      • Jan 2014
      • 7

      #3
      yes @Dormilich, But how to write this function ?

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        how much experience do you have coding JavaScript?

        Comment

        • Ahmed Na
          New Member
          • Jan 2014
          • 7

          #5
          good and Thanks for the help

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            I can recommend this site.

            Comment

            Working...