title: Identifying/Getting selected contextmenu item in javascript
body: <p>I'm just learning javascript right now, so please do try and explain with that detail in mind.</p>
  
  <p>What I want to do is this exactly -- when a user right-clicks or uses contextmenu from keyboard, I want to know what option he selected in the contextmenu. mainly I want to know if hes selected 'paste' or not. I know that there is an 'onPaste' event-handler but im looking for another approach.</p>
  
  <p>Thanks in advance.</p>