A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/Window/paste_event below:

Window: paste event - Web APIs

Window: paste event

Baseline Widely available

The paste event is fired when the user has initiated a "paste" action through the browser's user interface.

The original target for this event is the Element that was the intended target of the paste action. You can listen for this event on the Window interface to handle it in the capture or bubbling phases. For full details on this event please see the page on the Element: paste event.

Syntax

Use the event name in methods like addEventListener(), or set an event handler property.

addEventListener("paste", (event) => { })

onpaste = (event) => { }
Event type Examples
window.addEventListener("paste", (event) => {
  console.log("paste action initiated");
});
Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3