HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes


HTML onpaste Attribute

HTML onpaste Attribute



The onpaste attribute fires when the user pastes some content in an element. It is widely used with input type="text".


Ways to paste content in Element are:-


  • Press CTRL + V.
  • Select Paste from the Edit menu in the browser.
  • Right-click to display the context menu and select the Paste command.


Used With:-


Elements Event
All elements in HTML onpaste




Its syntax is:- < element onpaste="your_script" >

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML