Click counter | Sololearn: Learn to code for FREE!


Click counter

Can anyone make a download button and right to download button click counts should be there If I click on download button count should increase

4/9/2017 4:58:20 AM

Pawan Smy

2 Answers

New Answer


Yes you can put- <button onclick="counter()" name="submit">Submit</button> and define counter() function in javascript taking a variable count that increments whenever function be called (means when user click the button)


As there can be n no. of users working on n different systems on your website. So this can't be handled on client side. You should fetch download count from server every time download is clicked and update accordingly.