From da78a9e329e272dedb2400b79a3bdeebff387d47 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:17 -0500 Subject: initial commit --- files/ko/web/api/window/name/index.html | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 files/ko/web/api/window/name/index.html (limited to 'files/ko/web/api/window/name') diff --git a/files/ko/web/api/window/name/index.html b/files/ko/web/api/window/name/index.html new file mode 100644 index 0000000000..54228c7183 --- /dev/null +++ b/files/ko/web/api/window/name/index.html @@ -0,0 +1,32 @@ +--- +title: Window.name +slug: Web/API/Window/name +tags: + - 참고 + - 창 +translation_of: Web/API/Window/name +--- +
{{APIRef}}
+ +

요약

+ +

창의 이름을 얻거나/설정합니다.

+ +

문법

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

예제

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

설명

+ +

창의 이름은 주로 하이퍼링크나 폼의 target으로 설정됩니다. 그외엔, 창은 이름을 가지는 것을 거의 필요로 하지 않습니다.

+ +

또한 몇몇 프레임워크에서 창의 이름은 cross-domain messaging을 제공하기 위해 사용됩니다. (예를 들면, SessionVars 과 Dojo's dojox.io.windowName) 좀더 보안을 생각한다면 JSONP로 대체 될 수 있습니다. 하지만 최근 의 웹어플리케이션이 호스팅하는 민감한 데이터들은 cross-domain messaging을 이용하기 위해서 window.name에 의존해서는 안되며, 대신 postMessage API를 이용하는 방법이 있습니다.

+ +

window.nametoString 메소드를 이용해 모든 값을 문자열로 변환합니다.

-- cgit v1.2.3-54-g00ecf