Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<body>
<div id="test" onmousedown="mDown()" onmouseup="mUp()">
Click the text!
</div>
<script>
function mDown() {
document.getElementById("test").style.color = "blue";
}
function mUp() {
document.getElementById("test").style.color = "yellow";
}
</script>
</body>
</html>
The most helpful JAVASCRIPT solutions
How can I get the last day and the next day in javascript ?JAVASCRIPT Click to see more ... 5.8K 507