How can I handle the paste selected through right click in javascript? I tried with \"onpaste\" event and all other html events available but nothing works.
The event isn't exposed by default as "onpaste" IIRC. You can do it quite simply in jQuery by issuing
jQuery(document).bind('paste', function(e){ alert('paste event caught') });