aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/xmlhttprequest/responseurl/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/api/xmlhttprequest/responseurl/index.html')
-rw-r--r--files/ja/web/api/xmlhttprequest/responseurl/index.html50
1 files changed, 50 insertions, 0 deletions
diff --git a/files/ja/web/api/xmlhttprequest/responseurl/index.html b/files/ja/web/api/xmlhttprequest/responseurl/index.html
new file mode 100644
index 0000000000..b101ea8cab
--- /dev/null
+++ b/files/ja/web/api/xmlhttprequest/responseurl/index.html
@@ -0,0 +1,50 @@
+---
+title: XMLHttpRequest.responseURL
+slug: Web/API/XMLHttpRequest/responseURL
+tags:
+ - AJAX
+ - Read-only
+ - Reference
+ - URL
+ - XMLHttpRequest
+ - responseURL
+ - プロパティ
+translation_of: Web/API/XMLHttpRequest/responseURL
+---
+<div>{{APIRef('XMLHttpRequest')}}</div>
+
+<p><code><strong>XMLHttpRequest.responseURL</strong></code> プロパティは読み取り専用で、レスポンスのシリアライズされた URL を返します。 URL が <code>null</code> の場合は、空文字を返します。 URL に存在する URL フラグメントはすべて取り除かれます。 <code>responseURL</code> の値は、任意のリダイレクト後に得られる最後の URL になります。</p>
+
+<h2 id="Example" name="Example">例</h2>
+
+<pre class="brush: js">var xhr = new XMLHttpRequest();
+xhr.open('GET', 'http://example.com/test', true);
+xhr.onload = function () {
+ console.log(xhr.responseURL); // http://example.com/test
+};
+xhr.send(null);</pre>
+
+<h2 id="Specifications" name="Specifications">仕様書</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様書</th>
+ <th scope="col">状態</th>
+ <th scope="col">備考</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('XMLHttpRequest', '#the-responseurl-attribute')}}</td>
+ <td>{{Spec2('XMLHttpRequest')}}</td>
+ <td>WHATWG living standard</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2>
+
+<div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力したいのであれば、 <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div>
+
+<p>{{Compat("api.XMLHttpRequest.responseURL")}}</p>