diff options
author | julieng <julien.gattelier@gmail.com> | 2021-10-02 17:20:14 +0200 |
---|---|---|
committer | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-10-02 17:30:20 +0200 |
commit | c05efa8d7ae464235cf83d7c0956e42dc6974103 (patch) | |
tree | 6ea911b2f2010f63a026de6bb7a1a51e7690a7e1 /files/fr/web/api/window/length/index.md | |
parent | 13a5e017558b248ee1647d4a5825f183b51f09ad (diff) | |
download | translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.gz translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.bz2 translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.zip |
move *.html to *.md
Diffstat (limited to 'files/fr/web/api/window/length/index.md')
-rw-r--r-- | files/fr/web/api/window/length/index.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/files/fr/web/api/window/length/index.md b/files/fr/web/api/window/length/index.md new file mode 100644 index 0000000000..af1ee54111 --- /dev/null +++ b/files/fr/web/api/window/length/index.md @@ -0,0 +1,27 @@ +--- +title: Window.length +slug: Web/API/Window/length +translation_of: Web/API/Window/length +--- +<div>{{ ApiRef() }}</div> + +<p>Retourne le nombre de frames (soit des éléments de frame ou iframe) présent sur la page.</p> + +<h2 id="Syntax">Syntaxe</h2> + +<pre class="syntaxbox"><em>nombreDeFrames</em>= window.length; +</pre> + +<ul> + <li><em>nombreDeFrames est égal au nombre de frames présent sur la page.</em></li> +</ul> + +<h2 id="Example">Exemple</h2> + +<pre class="brush:js">if (window.length) { + // La page contient des frames +}</pre> + +<h2 id="Specification">Specification</h2> + +<p>{{DOM0}}</p> |