aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/windoweventhandlers
diff options
context:
space:
mode:
authorSphinxKnight <SphinxKnight@users.noreply.github.com>2021-09-27 19:52:26 +0200
committerGitHub <noreply@github.com>2021-09-27 19:52:26 +0200
commitb57379257281efd293e51237969a8553a7c58ae7 (patch)
tree37d1e1dee8f3ab8a5e4d953d121f80f647a94b5e /files/fr/web/api/windoweventhandlers
parentf139538f3148990f7b61d94f75d96381985a0c0e (diff)
downloadtranslated-content-b57379257281efd293e51237969a8553a7c58ae7.tar.gz
translated-content-b57379257281efd293e51237969a8553a7c58ae7.tar.bz2
translated-content-b57379257281efd293e51237969a8553a7c58ae7.zip
Fix web api fr upstream h2m (#2597)
* fix html examples with script * remove languages macro * enclose code words in <code> to avoid dot escape
Diffstat (limited to 'files/fr/web/api/windoweventhandlers')
-rw-r--r--files/fr/web/api/windoweventhandlers/onbeforeunload/index.html2
-rw-r--r--files/fr/web/api/windoweventhandlers/onpopstate/index.html4
-rw-r--r--files/fr/web/api/windoweventhandlers/onunload/index.html2
3 files changed, 3 insertions, 5 deletions
diff --git a/files/fr/web/api/windoweventhandlers/onbeforeunload/index.html b/files/fr/web/api/windoweventhandlers/onbeforeunload/index.html
index 0848a6ae06..638f24c27b 100644
--- a/files/fr/web/api/windoweventhandlers/onbeforeunload/index.html
+++ b/files/fr/web/api/windoweventhandlers/onbeforeunload/index.html
@@ -11,7 +11,7 @@ translation_of: Web/API/WindowEventHandlers/onbeforeunload
<pre class="brush: html">&lt;element beforeunload="funcRef(event);" /&gt;</pre>
-<pre class="brush: js">&lt;script type="text/javascript"&gt;
+<pre class="brush: html">&lt;script type="text/javascript"&gt;
window.onbeforeunload = funcRef
&lt;/script&gt;</pre>
diff --git a/files/fr/web/api/windoweventhandlers/onpopstate/index.html b/files/fr/web/api/windoweventhandlers/onpopstate/index.html
index 0a0ab110f2..ff23d12a70 100644
--- a/files/fr/web/api/windoweventhandlers/onpopstate/index.html
+++ b/files/fr/web/api/windoweventhandlers/onpopstate/index.html
@@ -53,6 +53,4 @@ history.go(2); // affiche "adresse: http://example.com/example.html?page=3, ét
<li>{{ domxref("window.history") }}</li>
<li><a href="/fr/docs/DOM/manipuler_lhistorique_du_navigateur">Manipuler l'historique du navigateur</a></li>
<li><a href="/fr/docs/DOM/Manipulating_the_browser_history/Example">Exemple de navigation en Ajax</a></li>
-</ul>
-
-<p>{{ languages( {"zh-cn": "zh-cn/DOM/window.onpopstate" } ) }}</p>
+</ul> \ No newline at end of file
diff --git a/files/fr/web/api/windoweventhandlers/onunload/index.html b/files/fr/web/api/windoweventhandlers/onunload/index.html
index 3c04b56c57..613631c10d 100644
--- a/files/fr/web/api/windoweventhandlers/onunload/index.html
+++ b/files/fr/web/api/windoweventhandlers/onunload/index.html
@@ -12,7 +12,7 @@ translation_of: Web/API/WindowEventHandlers/onunload
<p>L'événement <strong><code>unload</code></strong> est déclenché lorsque le contenu et les ressources sont déchargés à la fermeture de la fenêtre. Le processus de suppression des ressources se fait <em>après</em> que l'événement <code>unload </code>a eu lieu.</p>
-<p>Les navigateurs équipés d'un bloqueur de pop-up vont ignorer tout appel de window.open() lancé depuis onunload.</p>
+<p>Les navigateurs équipés d'un bloqueur de pop-up vont ignorer tout appel de <code>window.open()</code> lancé depuis onunload.</p>
<h2 id="Syntaxe">Syntaxe</h2>