I want to set a timer when user is moving the mouse while clicks. I have tried this but does not work properly:
var time_limit = 5; var start = new Date; var