I\'m trying to develop a typing speed competition using JavaScript. People should write all the words they see from a div to a textarea.
To prevent cheating (like copyin
A simpler solution than the accepted one would be to simply use a canvas element with filltext
var canvas = document.getElementById("myCanvas"); var ctx = canvas.getContext("2d"); ctx.fillText("Can't copy this", 5, 30);
JSFiddle example