aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/window/name
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/window/name
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/window/name')
-rw-r--r--files/ja/web/api/window/name/index.html56
1 files changed, 56 insertions, 0 deletions
diff --git a/files/ja/web/api/window/name/index.html b/files/ja/web/api/window/name/index.html
new file mode 100644
index 0000000000..0dbd1ab6c9
--- /dev/null
+++ b/files/ja/web/api/window/name/index.html
@@ -0,0 +1,56 @@
+---
+title: window.name
+slug: Web/API/Window/name
+tags:
+ - API
+ - HTML DOM
+ - Property
+ - Reference
+ - Window
+translation_of: Web/API/Window/name
+---
+<div>{{ApiRef}}</div>
+
+<p class="summary"><span class="seoSummary">ウィンドウ名を取得 / 設定します。</span></p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox"><var>string</var> = window.name;
+window.name = <var>string</var>;
+</pre>
+
+<h2 id="Example" name="Example">例</h2>
+
+<pre class="brush:js">window.name = "lab_view";
+</pre>
+
+<h2 id="Notes" name="Notes">注記</h2>
+
+<p>ウィンドウ名は、主にハイパーリンクとフォームのターゲットを設定するために使われます。ウィンドウは必ずしもウィンドウ名を持つ必要はありません。</p>
+
+<p>It has also been used in some frameworks for providing cross-domain messaging (e.g., <a href="http://www.thomasfrank.se/sessionvars.html">SessionVars</a> and Dojo's <a href="http://www.sitepen.com/blog/2008/07/22/windowname-transport/">dojox.io.windowName</a>) as a more secure alternative to JSONP. Modern web applications hosting sensitive data should however not rely on <code>window.name</code> for cross-domain messaging but instead rather utilize the <a href="/ja/docs/Web/API/Window/postMessage">postMessage API</a>.</p>
+
+
+<p>Don't set the value to something unstring since its get method will call the toString method.</p>
+
+<h2 id="Specifications" name="Specifications">仕様</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">仕様</th>
+ <th scope="col">状態</th>
+ <th scope="col">コメント</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', 'browsers.html#dom-name', 'Window.name')}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML5 W3C', 'browsers.html#dom-name', 'Window.name')}}</td>
+ <td>{{Spec2('HTML5 W3C')}}</td>
+ <td> </td>
+ </tr>
+ </tbody>
+</table>