Interview Questions

Jquery - Event handler for all events

The following code handles all the keyboard and mouse events

$(document).bind("click mousemove keyup keydown",function(e)
{
        alert("Event -> "+ e.type);
});

0
No votes yet
Your rating: None