'onPaste' Example : onPaste « Event Handlers Reference « JavaScript Reference

'onPaste' Example

    
<html>
<body>
<p>Copy and paste this text into the textarea element.</p>
<textarea cols=60 onpaste="alert('The text is being pasted')">
</textarea>
</body>
</html>

    
      
      








Related examples in the same category

1.'onPaste' Syntax and Note
2.'onPaste' Properties
3.'onPaste' is applied to