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 --- .../xmlhttprequesteventtarget/onload/index.html | 56 ---------------------- .../api/xmlhttprequesteventtarget/onload/index.md | 56 ++++++++++++++++++++++ 2 files changed, 56 insertions(+), 56 deletions(-) delete mode 100644 files/fr/web/api/xmlhttprequesteventtarget/onload/index.html create mode 100644 files/fr/web/api/xmlhttprequesteventtarget/onload/index.md (limited to 'files/fr/web/api/xmlhttprequesteventtarget/onload') diff --git a/files/fr/web/api/xmlhttprequesteventtarget/onload/index.html b/files/fr/web/api/xmlhttprequesteventtarget/onload/index.html deleted file mode 100644 index 8a6afa0393..0000000000 --- a/files/fr/web/api/xmlhttprequesteventtarget/onload/index.html +++ /dev/null @@ -1,56 +0,0 @@ ---- -title: XMLHttpRequestEventTarget.onload -slug: Web/API/XMLHttpRequestEventTarget/onload -translation_of: Web/API/XMLHttpRequestEventTarget/onload ---- -

 

- -
{{APIRef("XMLHttpRequest")}}
- -

The XMLHttpRequestEventTarget.onload is the function called when an {{domxref("XMLHttpRequest")}} transaction completes successfully.

- -

Syntax

- -
XMLHttpRequest.onload = callback;
- -

Values

- - - -

Example

- -
var xmlhttp = new XMLHttpRequest(),
-  method = 'GET',
-  url = 'https://developer.mozilla.org/';
-
-xmlhttp.open(method, url, true);
-xmlhttp.onload = function () {
-  // Do something with the retrieved data ( found in xmlhttp.response )
-};
-xmlhttp.send();
-
- -

Specifications

- - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('XMLHttpRequest', '#handler-xhr-onload')}}{{Spec2('XMLHttpRequest')}}WHATWG living standard
- -

Browser compatibility

- - - -

{{Compat("api.XMLHttpRequestEventTarget.onload")}}

diff --git a/files/fr/web/api/xmlhttprequesteventtarget/onload/index.md b/files/fr/web/api/xmlhttprequesteventtarget/onload/index.md new file mode 100644 index 0000000000..8a6afa0393 --- /dev/null +++ b/files/fr/web/api/xmlhttprequesteventtarget/onload/index.md @@ -0,0 +1,56 @@ +--- +title: XMLHttpRequestEventTarget.onload +slug: Web/API/XMLHttpRequestEventTarget/onload +translation_of: Web/API/XMLHttpRequestEventTarget/onload +--- +

 

+ +
{{APIRef("XMLHttpRequest")}}
+ +

The XMLHttpRequestEventTarget.onload is the function called when an {{domxref("XMLHttpRequest")}} transaction completes successfully.

+ +

Syntax

+ +
XMLHttpRequest.onload = callback;
+ +

Values

+ + + +

Example

+ +
var xmlhttp = new XMLHttpRequest(),
+  method = 'GET',
+  url = 'https://developer.mozilla.org/';
+
+xmlhttp.open(method, url, true);
+xmlhttp.onload = function () {
+  // Do something with the retrieved data ( found in xmlhttp.response )
+};
+xmlhttp.send();
+
+ +

Specifications

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('XMLHttpRequest', '#handler-xhr-onload')}}{{Spec2('XMLHttpRequest')}}WHATWG living standard
+ +

Browser compatibility

+ + + +

{{Compat("api.XMLHttpRequestEventTarget.onload")}}

-- cgit v1.2.3-54-g00ecf