diff options
| author | MDN <actions@users.noreply.github.com> | 2022-02-22 00:12:14 +0000 |
|---|---|---|
| committer | MDN <actions@users.noreply.github.com> | 2022-02-22 00:12:14 +0000 |
| commit | 6acf87987baea4675dbd1d5586663959e742cc03 (patch) | |
| tree | 83b489d9467dc18464207bbec4a8e5eaf9c804cd /files/fr/web/api/document/onafterscriptexecute | |
| parent | 92e543f7c53602f7b0ed8ba0788995632adf9601 (diff) | |
| download | translated-content-6acf87987baea4675dbd1d5586663959e742cc03.tar.gz translated-content-6acf87987baea4675dbd1d5586663959e742cc03.tar.bz2 translated-content-6acf87987baea4675dbd1d5586663959e742cc03.zip | |
[CRON] sync translated content
Diffstat (limited to 'files/fr/web/api/document/onafterscriptexecute')
| -rw-r--r-- | files/fr/web/api/document/onafterscriptexecute/index.md | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/files/fr/web/api/document/onafterscriptexecute/index.md b/files/fr/web/api/document/onafterscriptexecute/index.md deleted file mode 100644 index a53d74a24d..0000000000 --- a/files/fr/web/api/document/onafterscriptexecute/index.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -title: Document.onafterscriptexecute -slug: Web/API/Document/onafterscriptexecute -tags: - - API - - DOM - - Propriétés - - scripts -translation_of: Web/API/Document/onafterscriptexecute ---- -{{ ApiRef("DOM") }} {{non-standard_header}} - -## Résumé - -Lancé lorsqu'un élément {{HTMLElement("script")}} statique achève l'exécution de son script. N'est pas lancé si l'élément est ajouté dynamiquement, par exemple avec appendChild(). - -## Syntaxe - - document.onafterscriptexecute = funcRef; - -_funcRef_ est une référence de fonction appelée lorsqu'un évènement est lancé. L'attribut de la `target` (cible) d'évènement est défini sur l'{{domxref("Element")}} script dont l'exécution vient de s'achever. - -## Exemple - -```js -function finished(e) { - logMessage("Finished script with ID: " + e.target.id); -} - -document.addEventListener("afterscriptexecute", finished, true); -``` - -[Voir l'exemple sur une page](/samples/html/currentScript.html) - -## Spécification - -- [HTML5](http://www.whatwg.org/specs/web-apps/current-work/#the-script-element) - -## Voir aussi - -- {{domxref("Document.onbeforescriptexecute")}} -- {{domxref("Document.currentScript")}} |
