From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/window/name/index.html | 56 +++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 files/ja/web/api/window/name/index.html (limited to 'files/ja/web/api/window/name') 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 +--- +
{{ApiRef}}
+ +

ウィンドウ名を取得 / 設定します。

+ +

構文

+ +
string = window.name;
+window.name = string;
+
+ +

+ +
window.name = "lab_view";
+
+ +

注記

+ +

ウィンドウ名は、主にハイパーリンクとフォームのターゲットを設定するために使われます。ウィンドウは必ずしもウィンドウ名を持つ必要はありません。

+ +

It has also been used in some frameworks for providing cross-domain messaging (e.g., SessionVars and Dojo's dojox.io.windowName) as a more secure alternative to JSONP. Modern web applications hosting sensitive data should however not rely on window.name for cross-domain messaging but instead rather utilize the postMessage API.

+ + +

Don't set the value to something unstring since its get method will call the toString method.

+ +

仕様

+ + + + + + + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG', 'browsers.html#dom-name', 'Window.name')}}{{Spec2('HTML WHATWG')}} 
{{SpecName('HTML5 W3C', 'browsers.html#dom-name', 'Window.name')}}{{Spec2('HTML5 W3C')}} 
-- cgit v1.2.3-54-g00ecf