With you every step of your journey. Instead of using this deprecated (and non-standard) property, you should use PointerEvent and look at its pressure property. How to Automate Clicks Using JavaScript | by Thomas Molnar-Brock | The Startup | Medium 500 Apologies, but something went wrong on our end. Click Counter JCC (JS Click Counter) is a simple and easy to use click counter. Javascript, div on click multiple numbers in input field. The X coordinate of the mouse pointer in global (screen) coordinates. In that case the retrieve and store process would be with the cookie and not a hidden label! You can also use the following (using jQuery) to persist it using cookies as recommended by others: Sure, add an onclick event handler function to the tag that retrieves, increments and stores a counter variable. If you open this example using the Try! Note:TheAll JS Examples codesaretested on the Firefox browser and the Chrome browser. Refer to the following code sample. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Le rfrencement naturel est une stratgie de marketing qui consiste promouvoir votre site en retirant le plus possible les pages du top 10 des rsultats d'indexation de moteurs de recherche. So I don't think it will fire its onclick event. Basic onclick syntax This example displays the number of consecutive clicks on a