Number Scrubbing
If you use <input type="number">
, some browsers give you an input that has UI for incrementing the number, like up/down arrows (often called “spinners”).…
If you use <input type="number">
, some browsers give you an input that has UI for incrementing the number, like up/down arrows (often called “spinners”).…
I recently changed out just about all of my computer equipment. Nothing dramatic like #davegoeswindows, but all new gear within my relative comfort-zone. It was the first time since late 2013, and now it’s going on 2017, so I …
When a KeyboardEvent
fires, you can test which key was pressed because that event contains information you can write logic against.
document.addEventListener("keydown", function(event) {
console.log(event.which);
})
For example, by pressing a
, you’ll get 65
. Apparently it’s best to …