Search code examples
jquerymouseeventcompatibilityprototypejs

Prototype .Mousemove equivalent


I would like to know if there is any equivalent to the jquery mousemove function in prototype.


Solution

  • I think this will get you where you want to be:

    Event.observe(document, 'mousemove', callBackFunction);
    
    callbackFunction = function(event)
    {
       //do something 
    }