Hiding the mouse cursor when idle using JavaScript
Is it possible to use JavaScript to set the cursor attribute to the property none if the mouse is inactive for a certain amount of time (say, five seconds) and set it back to auto when it becomes active again? EDIT: I realize that none is not a valid value for the cursor property. Nonetheless, many web-browsers seem to support it. Furthermore, the primary user for this is myself, so there is little chance of confusion arising as a result. I've got two scripts that can do something similar: window.addEventListener("mousemove", function(){ document.querySelector("#editor").style.background = "