Click counter

Developer
Size
2,028 Kb
Views
8,096

How do I make an click counter?

Counts every time you click the click this button. I made this because I'm pretty sure my mouse is going bad and I wanted a way to count the actual clicks I make so I can see if my mouse is double clicking when it shouldn't.. What is a click counter? How do you make a click counter? This script and codes were developed by Sheodox on 26 December 2022, Monday.

Click counter Previews

Click counter - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Click counter</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div>
<input readonly id="counter" value=0>
<button onclick="countUp()">Click This!</button>
<button onclick="clearCounter()">Clear</button>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Click counter - Script Codes CSS Codes

button { font-size:3em; background: #555; color:white; border:0; padding:20px;
}
button:active { background: #444;
}
input { text-align:center; margin:5px auto; font-size:2em; background:#555; color:white; width:5em; display:block;
}
input, button { border:1px solid black;
}
div { margin:0 auto; width:27em; height:10em; background: #333; padding: 20px;
}
div * { text-align:center;
}
body { background: url("https://i.imgur.com/YE8pcYR.jpg") fixed;
}

Click counter - Script Codes JS Codes

var $out;
$(document).ready(function(){ $out = $("#counter");
});
function countUp(){ $out.val(parseInt($out.val())+1);
}
function clearCounter(){ $out.val(0);
}
Click counter - Script Codes
Click counter - Script Codes
Home Page Home
Developer Sheodox
Username sheodox
Uploaded December 26, 2022
Rating 3
Size 2,028 Kb
Views 8,096
Do you need developer help for Click counter?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Sheodox (sheodox) Script Codes
Create amazing captions with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!