I am trying to change value if there is a mouse move on the page, but it always stays the same. It always writes "no" on click.
var desifre = "no";
$('body').bind('mousemove', function(e){
var desifre = "yes";
});
$('#test').click(function(){
document.write(desifre);
});
What is the correct way to change the value, if there is mouse move on the page ?