Phong Duong

🔎Search

Paste event

21-01-2021 | #javascript

paste event fires when the user pastes data on the web's interface.

document.addEventListener('paste', (event) => {
});

You can access the pasted data by calling the getData() method on the event's clipboardData property.

Share: TwitterFacebookLinkedInHacker News