From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/fr/web/api/url/protocol/index.html | 61 ++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 files/fr/web/api/url/protocol/index.html (limited to 'files/fr/web/api/url/protocol') diff --git a/files/fr/web/api/url/protocol/index.html b/files/fr/web/api/url/protocol/index.html new file mode 100644 index 0000000000..a67e867df9 --- /dev/null +++ b/files/fr/web/api/url/protocol/index.html @@ -0,0 +1,61 @@ +--- +title: URL.protocol +slug: Web/API/URL/protocol +tags: + - API + - Propriété + - Reference + - URL + - protocole +translation_of: Web/API/URL/protocol +--- +
{{ApiRef("URL API")}}
+ +

La propriété protocol de l'interface {{domxref("URL")}} est une {{domxref("USVString")}} représentant le schéma protocolaire de URL, incluant ':' à la fin.

+ +

{{AvailableInWorkers}}

+ +

Syntaxe

+ +
string = object.protocol;
+object.protocol = string;
+
+ +

Valeur

+ +

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

+ +

Exemples

+ +
var url = new URL('https://developer.mozilla.org/en-US/docs/Web/API/URL/protocol');
+var result = url.protocol; // Retourne:"https:"
+
+ +

Spécifications

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

Compatibilité des navigateurs

+ + + +

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

+ +

A voir également

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