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

XMLHttpRequestEventTarget.onloadstart は、 {{domxref("XMLHttpRequest")}} トランザクションがデータ転送を開始するときに呼び出される関数です。

+ +

構文

+ +
XMLHttpRequest.onloadstart = callback;
+ +

+ + + +

+ +
var xmlhttp = new XMLHttpRequest(),
+  method = 'GET',
+  url = 'https://developer.mozilla.org/';
+
+xmlhttp.open(method, url, true);
+xmlhttp.onloadstart = function () {
+  console.log("Download underway");
+};
+xmlhttp.send();
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様ステータス備考
{{SpecName('XMLHttpRequest', '#handler-xhr-onloadstart')}}{{Spec2('XMLHttpRequest')}}WHATWG living standard
+ +

ブラウザーの互換性

+ + + +

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

-- cgit v1.2.3-54-g00ecf