JavaScript Event – Copy

The code, and the template, are referred to in Webmonkey’s JavaScript Events reference page. In this example, the onCopy event fires whenever a form field’s contents are copied with the user’s local copy function (ctrl-c, edit menu, or contextual menu). The event can also be attached to the window object to catch copying anywhere on the page.