From c05efa8d7ae464235cf83d7c0956e42dc6974103 Mon Sep 17 00:00:00 2001 From: julieng Date: Sat, 2 Oct 2021 17:20:14 +0200 Subject: move *.html to *.md --- files/fr/web/api/url/hash/index.html | 62 ------------------------------------ files/fr/web/api/url/hash/index.md | 62 ++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 62 deletions(-) delete mode 100644 files/fr/web/api/url/hash/index.html create mode 100644 files/fr/web/api/url/hash/index.md (limited to 'files/fr/web/api/url/hash') diff --git a/files/fr/web/api/url/hash/index.html b/files/fr/web/api/url/hash/index.html deleted file mode 100644 index f89d838eb1..0000000000 --- a/files/fr/web/api/url/hash/index.html +++ /dev/null @@ -1,62 +0,0 @@ ---- -title: URL.hash -slug: Web/API/URL/hash -tags: - - API - - Hash - - Propriété - - Reference - - URL -translation_of: Web/API/URL/hash ---- -
{{ APIRef("URL API") }}
- -

La propriété hash de l'interface {{domxref("URL")}} retourne un {{domxref("USVString")}} contenant le caractère '#' suivi par l'identificateur de fragment de URL.

- -

Le fragment n'est pas décodé en pourcent. Si l'URL ne contient pas d'identificateur de fragment, la valeur de cette propriété est une chaîne de caractère vide — "".

- -

{{AvailableInWorkers}}

- -

Syntaxe

- -
string = object.hash;
-object.hash = string;
-
- -

Valeur

- -

Un {{domxref("USVString")}}.

- -

Exemples

- -
var url = new URL('https://developer.mozilla.org/en-US/docs/Web/API/URL/href#Examples');
-url.hash // Returns '#Examples'
- -

Spécifications

- - - - - - - - - - - - - - -
SpécificationStatutCommentaire
{{SpecName('URL', '#dom-url-hash', 'URL.hash')}}{{Spec2('URL')}}Définition initiale
- -

Compatibilité des navigateurs

- - - -

{{Compat("api.URL.hash")}}

- -

A voir également

- - diff --git a/files/fr/web/api/url/hash/index.md b/files/fr/web/api/url/hash/index.md new file mode 100644 index 0000000000..f89d838eb1 --- /dev/null +++ b/files/fr/web/api/url/hash/index.md @@ -0,0 +1,62 @@ +--- +title: URL.hash +slug: Web/API/URL/hash +tags: + - API + - Hash + - Propriété + - Reference + - URL +translation_of: Web/API/URL/hash +--- +
{{ APIRef("URL API") }}
+ +

La propriété hash de l'interface {{domxref("URL")}} retourne un {{domxref("USVString")}} contenant le caractère '#' suivi par l'identificateur de fragment de URL.

+ +

Le fragment n'est pas décodé en pourcent. Si l'URL ne contient pas d'identificateur de fragment, la valeur de cette propriété est une chaîne de caractère vide — "".

+ +

{{AvailableInWorkers}}

+ +

Syntaxe

+ +
string = object.hash;
+object.hash = string;
+
+ +

Valeur

+ +

Un {{domxref("USVString")}}.

+ +

Exemples

+ +
var url = new URL('https://developer.mozilla.org/en-US/docs/Web/API/URL/href#Examples');
+url.hash // Returns '#Examples'
+ +

Spécifications

+ + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('URL', '#dom-url-hash', 'URL.hash')}}{{Spec2('URL')}}Définition initiale
+ +

Compatibilité des navigateurs

+ + + +

{{Compat("api.URL.hash")}}

+ +

A voir également

+ + -- cgit v1.2.3-54-g00ecf