I know if you move mouse, that event will invoke however how can I invoke that event just with help of the code?
3 Answers
If you have a jQuery element from which you want to fire an event you need the trigger method
var $t = jQuery('#idToElement');
$t.trigger('mousemove',['parameter1','parameter2']);
If you want to do this with pure javascript you need the createEvent function of the document object. You can find more about that here
document.createEvent(example with mouse event included) and jQuery'strigger