From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../onprogress/index.html | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 files/ja/web/api/xmlhttprequesteventtarget/onprogress/index.html (limited to 'files/ja/web/api/xmlhttprequesteventtarget/onprogress') diff --git a/files/ja/web/api/xmlhttprequesteventtarget/onprogress/index.html b/files/ja/web/api/xmlhttprequesteventtarget/onprogress/index.html new file mode 100644 index 0000000000..7973898e1f --- /dev/null +++ b/files/ja/web/api/xmlhttprequesteventtarget/onprogress/index.html @@ -0,0 +1,73 @@ +--- +title: XMLHttpRequestEventTarget.onprogress +slug: Web/API/XMLHttpRequestEventTarget/onprogress +tags: + - Property + - Reference + - Web + - XHR + - XMLHttpRequestEventTarget + - イベントハンドラ +translation_of: Web/API/XMLHttpRequestEventTarget/onprogress +--- +

{{APIRef("XMLHttpRequest")}}

+ +

XMLHttpRequestEventTarget.onprogress は、正常に成功する前に {{domxref("XMLHttpRequest")}} の情報を定期的に呼び出す関数です。

+ +

構文

+ +
XMLHttpRequest.onprogress = callback;
+ +

+ + + +

イベント

+ + + +
XMLHttpRequest.onprogress = function (event) {
+  event.loaded;
+  event.total;
+};
+ +

+ +
var xmlhttp = new XMLHttpRequest(),
+  method = 'GET',
+  url = 'https://developer.mozilla.org/';
+
+xmlhttp.open(method, url, true);
+xmlhttp.onprogress = function () {
+  //do something
+};
+xmlhttp.send();
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様備考コメント
{{SpecName('XMLHttpRequest', '#handler-xhr-onload')}}{{Spec2('XMLHttpRequest')}}WHATWG living standard
+ +

ブラウザーの互換性

+ + + +

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

-- cgit v1.2.3-54-g00ecf