From 1407c8fdef01ecd0ffb8a8bd46e7113f119b9fde Mon Sep 17 00:00:00 2001 From: julieng Date: Sat, 2 Oct 2021 17:20:24 +0200 Subject: convert content to md --- files/fr/web/api/window/beforeprint_event/index.md | 85 +++++++--------------- 1 file changed, 28 insertions(+), 57 deletions(-) (limited to 'files/fr/web/api/window/beforeprint_event/index.md') diff --git a/files/fr/web/api/window/beforeprint_event/index.md b/files/fr/web/api/window/beforeprint_event/index.md index b0e96ca975..fbf8c38b2a 100644 --- a/files/fr/web/api/window/beforeprint_event/index.md +++ b/files/fr/web/api/window/beforeprint_event/index.md @@ -7,69 +7,40 @@ tags: translation_of: Web/API/Window/beforeprint_event original_slug: Web/Events/beforeprint --- -

L'événement beforeprint est déclenché lorsque le document associé est sur le point d'être imprimé ou qu'un "aperçu avant impression" est lancé.

+L'événement **`beforeprint`** est déclenché lorsque le document associé est sur le point d'être imprimé ou qu'un "aperçu avant impression" est lancé. -

Informations générales

+## Informations générales -
-
Spécification
-
HTML5
-
Interface
-
Event
-
Propagation
-
Non
-
Annulable
-
Non
-
Cible
-
DefaultView (<window>)
-
Action par défaut
-
Aucune
-
+- Spécification + - : [HTML5](https://html.spec.whatwg.org/multipage/webappapis.html#printing) +- Interface + - : Event +- Propagation + - : Non +- Annulable + - : Non +- Cible + - : DefaultView (``) +- Action par défaut + - : Aucune -

Exemples

+## Exemples -

En utilisant window.addEventListener() :

+En utilisant `window.addEventListener()` : -
window.addEventListener("beforeprint", (evenement) => {
-  console.log("Before print");
-});
+ window.addEventListener("beforeprint", (evenement) => { + console.log("Before print"); + }); -

Propriétés

+## Propriétés - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PropertyTypeDescription
target {{readonlyInline}}{{domxref("EventTarget")}}The event target (the topmost target in the DOM tree).
type {{readonlyInline}}{{domxref("DOMString")}}The type of event.
bubbles {{readonlyInline}}{{jsxref("Boolean")}}Whether the event normally bubbles or not.
cancelable {{readonlyInline}}{{jsxref("Boolean")}}Whether the event is cancellable or not.
+| Property | Type | Description | +| ------------------------------------- | ------------------------------------ | ------------------------------------------------------ | +| `target` {{readonlyInline}} | {{domxref("EventTarget")}} | The event target (the topmost target in the DOM tree). | +| `type` {{readonlyInline}} | {{domxref("DOMString")}} | The type of event. | +| `bubbles` {{readonlyInline}} | {{jsxref("Boolean")}} | Whether the event normally bubbles or not. | +| `cancelable` {{readonlyInline}} | {{jsxref("Boolean")}} | Whether the event is cancellable or not. | -

Evénements liés

+## Evénements liés - +- [afterprint](/en-US/docs/Mozilla_event_reference/afterprint) -- cgit v1.2.3-54-g00ecf