• Double Click
  • Right Click
  • Drag and Drop

A function is triggered when the button is double-clicked. The function outputs some text in a p element with id="demo".

Context Menu Example
Right Click

Drag the image into the rectangle: