<input ... οnclick="if(isNaN(value))execCommand('undo')"/>