Horje

How to Execute a JavaScript when copying some text of a <p> element

Try to copy this text.

index.html
Example: HTML
 <p oncopy="myFunction()">Try to copy this text</p>

Output should be:

How to Execute a JavaScript when copying some text of a <p> element




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Clipboard Events Attribute
Uploaded by:
Admin