on click
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Stop handling
$('#click-text').getWordByEvent('click', function(event, word) {
$('#click-label').html('Clicked: <b>' + word + '</b>');
});
$('#stop-handling').click(function() {
$('#click-text').getWordByEvent('click', false);
});
on right click
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
$('#right-text').getWordByEvent('contextmenu', function(event, word) {
event.preventDefault(); // Prevent popup menu
$('#right-label').html('Right clicked: <b>' + word + '</b>');
});
on hover
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
$('#move-text').getWordByEvent('mousemove', function(event, word) {
$('#move-label').html('Word under cursor: <b>' + word + '</b>');
});