From 6ef1fa4618e08426b874529619a66adbd3d1fcf0 Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 11 Feb 2021 12:07:59 +0100 Subject: unslug ja: move --- files/ja/web/api/window/arguments/index.html | 7 -- files/ja/web/api/window/escape/index.html | 34 -------- files/ja/web/api/window/getattention/index.html | 25 ------ files/ja/web/api/window/onafterprint/index.html | 55 ------------ files/ja/web/api/window/onappinstalled/index.html | 57 ++++++++++++ files/ja/web/api/window/onclick/index.html | 45 ---------- files/ja/web/api/window/oninstall/index.html | 57 ------------ files/ja/web/api/window/onmousedown/index.html | 48 ---------- files/ja/web/api/window/onmouseup/index.html | 57 ------------ files/ja/web/api/window/onreset/index.html | 57 ------------ files/ja/web/api/window/onresize/index.html | 78 ----------------- files/ja/web/api/window/opener/index.html | 33 +++++++ files/ja/web/api/window/restore/index.html | 11 --- files/ja/web/api/window/stop/index.html | 58 +++++++++++++ files/ja/web/api/window/unescape/index.html | 34 -------- files/ja/web/api/window/url/index.html | 101 ---------------------- 16 files changed, 148 insertions(+), 609 deletions(-) delete mode 100644 files/ja/web/api/window/arguments/index.html delete mode 100644 files/ja/web/api/window/escape/index.html delete mode 100644 files/ja/web/api/window/getattention/index.html delete mode 100644 files/ja/web/api/window/onafterprint/index.html create mode 100644 files/ja/web/api/window/onappinstalled/index.html delete mode 100644 files/ja/web/api/window/onclick/index.html delete mode 100644 files/ja/web/api/window/oninstall/index.html delete mode 100644 files/ja/web/api/window/onmousedown/index.html delete mode 100644 files/ja/web/api/window/onmouseup/index.html delete mode 100644 files/ja/web/api/window/onreset/index.html delete mode 100644 files/ja/web/api/window/onresize/index.html create mode 100644 files/ja/web/api/window/opener/index.html delete mode 100644 files/ja/web/api/window/restore/index.html create mode 100644 files/ja/web/api/window/stop/index.html delete mode 100644 files/ja/web/api/window/unescape/index.html delete mode 100644 files/ja/web/api/window/url/index.html (limited to 'files/ja/web/api/window') diff --git a/files/ja/web/api/window/arguments/index.html b/files/ja/web/api/window/arguments/index.html deleted file mode 100644 index f026024047..0000000000 --- a/files/ja/web/api/window/arguments/index.html +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: window.arguments -slug: Web/API/Window/arguments -translation_of: Working_with_windows_in_chrome_code#Passing_data_between_windows -translation_of_original: Web/API/Window.arguments ---- -

『chrome コードでウィンドウを取り扱う』の頁の『ウィンドウ間でのデータのやり取り』の章をご覧下さい。

diff --git a/files/ja/web/api/window/escape/index.html b/files/ja/web/api/window/escape/index.html deleted file mode 100644 index 48ab4cab3b..0000000000 --- a/files/ja/web/api/window/escape/index.html +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: window.escape -slug: Web/API/Window/escape -tags: - - DOM - - DOM_0 - - Gecko - - Gecko DOM Reference - - Window -translation_of: Web/JavaScript/Reference/Global_Objects/escape -translation_of_original: Web/API/Window.escape ---- -
- {{ApiRef}}
-

概要

-

文字列をエンコードし、16 進エスケープシーケンスで表された特定の文字に置換します。

-

構文

-
escaped = escape(regular);
-
- -

-
alert( escape("http://www.cnn.com") ); // 表示結果: http%3A//www.cnn.com
-
-

注記

-

escape() メソッドは、特別な文字(通常のテキストや数字ではない文字)を 16 進文字にエンコードします。これは、特に、クッキーの値を設定するために必要となります。また、GET リクエストや AJAX GET/POST リクエストの URL で - - name=value - のような組のデータを渡すときにも役立ちます。

-

{{domxref("window.unescape")}} 、encodeURIComponent も参照してください。

-

仕様

-

{{DOM0}} 但し、ECMA-262 の非標準化セクションで言及されています。

diff --git a/files/ja/web/api/window/getattention/index.html b/files/ja/web/api/window/getattention/index.html deleted file mode 100644 index 4376715018..0000000000 --- a/files/ja/web/api/window/getattention/index.html +++ /dev/null @@ -1,25 +0,0 @@ ---- -title: window.getAttention -slug: Web/API/Window/getAttention -tags: - - DOM - - DOM_0 - - Gecko - - Gecko DOM Reference - - Window -translation_of: Web/API/Window/getAttention ---- -
- {{ApiRef}}
-

概要

-

ユーザの注意を引きつける動作をします。これがどのような動作になるかは、OS と ウィンドウマネージャー次第で変化します。

-

構文

-
window.getAttention();
-
-

注記

-

Windows では、ウィンドウのタスクバーのボタンが点滅します(ユーザがこれを無効化していない場合)。

-

Linux では、挙動はウィンドウマネージャーによって変化します。タスクバーボタンが点滅するのもあれば、直ちにウィンドウにフォーカスするものもあります。これは調整可能であるかもしれません。

-

Macintosh では、デスクトップの右上端のアイコンが点滅します。

-

この関数は、Web コンテンツでは、無効化されています。Gecko も Internet Explorer も、現在はこの機能を Web コンテンツに対してはサポートしていません。getAttention は、Gecko アプリケーションでの chrome から利用したときには、いまだに動作します。

-

仕様

-

{{DOM0}}

diff --git a/files/ja/web/api/window/onafterprint/index.html b/files/ja/web/api/window/onafterprint/index.html deleted file mode 100644 index 162c81e8c6..0000000000 --- a/files/ja/web/api/window/onafterprint/index.html +++ /dev/null @@ -1,55 +0,0 @@ ---- -title: WindowEventHandlers.onafterprint -slug: Web/API/Window/onafterprint -tags: - - API - - DOM - - Event Handler - - HTML DOM - - Property - - Reference - - WindowEventHandlers - - printing -translation_of: Web/API/WindowEventHandlers/onafterprint ---- -
{{ApiRef}}
- -

{{domxref("WindowEventHandlers")}} ミックスインの onafterprint プロパティは、現在のウィンドウの {{event("afterprint")}} イベントを処理するための {{domxref("EventHandler")}} です。 このイベントは、ユーザーが印刷した後や、ユーザーが印刷ダイアログで中止した場合に発生します。

- -

{{event("beforeprint")}} イベントと afterprint イベントを使用すると、印刷を開始する前にページでコンテンツを変更し(例えば、バナーを削除するなど)、印刷の完了後にそれらの変更を元に戻すことができます。 一般に、@media print CSS @-規則の使用を好むはずですが、場合によってはこれらのイベントを使用する必要があるかもしれません。

- -

構文

- -
window.addEventListener("afterprint", function(event) { ... });
-window.onafterprint = function(event) { ... };
- -

仕様

- - - - - - - - - - - - - - -
仕様状態コメント
{{SpecName('HTML WHATWG', '#handler-window-onafterprint', 'onafterprint')}}{{Spec2('HTML WHATWG')}}
- -

ブラウザーの互換性

- - - -

{{Compat("api.WindowEventHandlers.onafterprint")}}

- -

関連情報

- - diff --git a/files/ja/web/api/window/onappinstalled/index.html b/files/ja/web/api/window/onappinstalled/index.html new file mode 100644 index 0000000000..40c22b7cec --- /dev/null +++ b/files/ja/web/api/window/onappinstalled/index.html @@ -0,0 +1,57 @@ +--- +title: Window.onappinstalled +slug: Web/API/Window/oninstall +tags: + - API + - Event Handler + - Property + - Reference + - Window + - web manifest +translation_of: Web/API/Window/onappinstalled +--- +
{{APIRef}}
+ +

{{domxref("Window")}} オブジェクトの onappinstalled プロパティは、appinstalled イベントのイベントハンドラーとして扱われます。これは、ウェブアプリケーションが プログレッシブウェブアプリ (PWA) としてインストールに成功すると発行されます。この発生したイベントは、{{domxref("Event")}} インターフェイスを実装する「単純なイベント」です。

+ +

構文

+ +
window.onappinstalled = function(event) { ... };
+
+ +

+ +
window.onappinstalled = function(ev) {
+  console.log('アプリケーションがインストールされました。');
+};
+ +

仕様

+ + + + + + + + + + + + + + + + +
仕様書策定状況備考
{{SpecName('Manifest', '#onappinstalled-attribute', 'Window.onappinstalled')}}{{Spec2('Manifest')}}初期定義
+ +

ブラウザー実装状況

+ + + +

{{Compat("api.Window.onappinstalled")}}

+ +

関連項目

+ + diff --git a/files/ja/web/api/window/onclick/index.html b/files/ja/web/api/window/onclick/index.html deleted file mode 100644 index ac36968fa6..0000000000 --- a/files/ja/web/api/window/onclick/index.html +++ /dev/null @@ -1,45 +0,0 @@ ---- -title: window.onclick -slug: Web/API/Window/onclick -tags: - - DOM - - Gecko - - Gecko DOM Reference - - Window -translation_of: Web/API/GlobalEventHandlers/onclick -translation_of_original: Web/API/Window/onclick ---- -
- {{ApiRef}}
-

概要

-

カーソルがウィンドウ内にある時にユーザがマウスボタンをクリックした場合に呼び出されます。このイベントはどのマウスボタンを押下した場合でも発生します。イベントが発生した地点はイベントのプロパティから取得する事が出来ます。

-

構文

-
window.onclick =funcRef;
-
- -

-
<!DOCTYPE html>
-<html>
-<head>
-<meta charset="UTF-8" />
-<title>onclick のテスト</title>
-<script>
-function clickPage () {
-  alert("click event detected!");
-}
-
-window.onclick = clickPage;
-</script>
-</head>
-
-<body>
-
-<p>このページ上でマウスボタンをクリックしてみてください。</p>
-
-</body>
-</html>
-

ユーザが Window 内をクリックすると click イベントが発生します。

-

仕様

-

どの仕様書にも含まれていません。

diff --git a/files/ja/web/api/window/oninstall/index.html b/files/ja/web/api/window/oninstall/index.html deleted file mode 100644 index 40c22b7cec..0000000000 --- a/files/ja/web/api/window/oninstall/index.html +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: Window.onappinstalled -slug: Web/API/Window/oninstall -tags: - - API - - Event Handler - - Property - - Reference - - Window - - web manifest -translation_of: Web/API/Window/onappinstalled ---- -
{{APIRef}}
- -

{{domxref("Window")}} オブジェクトの onappinstalled プロパティは、appinstalled イベントのイベントハンドラーとして扱われます。これは、ウェブアプリケーションが プログレッシブウェブアプリ (PWA) としてインストールに成功すると発行されます。この発生したイベントは、{{domxref("Event")}} インターフェイスを実装する「単純なイベント」です。

- -

構文

- -
window.onappinstalled = function(event) { ... };
-
- -

- -
window.onappinstalled = function(ev) {
-  console.log('アプリケーションがインストールされました。');
-};
- -

仕様

- - - - - - - - - - - - - - - - -
仕様書策定状況備考
{{SpecName('Manifest', '#onappinstalled-attribute', 'Window.onappinstalled')}}{{Spec2('Manifest')}}初期定義
- -

ブラウザー実装状況

- - - -

{{Compat("api.Window.onappinstalled")}}

- -

関連項目

- - diff --git a/files/ja/web/api/window/onmousedown/index.html b/files/ja/web/api/window/onmousedown/index.html deleted file mode 100644 index b5f947f8be..0000000000 --- a/files/ja/web/api/window/onmousedown/index.html +++ /dev/null @@ -1,48 +0,0 @@ ---- -title: window.onmousedown -slug: Web/API/Window/onmousedown -tags: - - DOM - - Gecko - - Gecko DOM Reference - - Window -translation_of: Web/API/GlobalEventHandlers/onmousedown -translation_of_original: Web/API/Window/onmousedown ---- -
- {{ApiRef}}
-

概要

-

{{domxref("window")}} 上での mousedown イベントに対応するイベントハンドラです。

-

構文

-
window.onmousedown = funcRef;
-
- -

-
window.onmousedown = doFunc;
-
-
<!DOCTYPE html>
-<html lang="ja">
-<head>
-<meta charset="UTF-8" />
-<title>onmousedown のテスト</title>
-
-<script>
-window.onmousedown = mousedown;
-
-function mousedown() {
-  alert("mousedown イベントが発生しました。");
-}
-</script>
-
-</head>
-<body>
-<p>ページ上でのマウスクリック(右クリック、左クリック、中ボタン)で  mousedown イベントが発生します。</p>
-</body>
-</html>
-
-

注記

-

ページ上の任意の場所でマウスボタンをクリックすると mousedown イベントが発生し、アラートを表示する関数が呼び出されます。

-

仕様

-

標準仕様書には含まれていません。

diff --git a/files/ja/web/api/window/onmouseup/index.html b/files/ja/web/api/window/onmouseup/index.html deleted file mode 100644 index f7133126a9..0000000000 --- a/files/ja/web/api/window/onmouseup/index.html +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: window.onmouseup -slug: Web/API/Window/onmouseup -tags: - - DOM - - Gecko - - Gecko DOM Reference - - Window -translation_of: Web/API/GlobalEventHandlers/onmouseup -translation_of_original: Web/API/Window/onmouseup ---- -
- {{ApiRef}}
-

概要

-

{{domxref("window")}} 上の mouseup イベントに対応するイベントハンドラです。

-

構文

-
window.onmouseup = funcRef;
-
- -

-
function doFunc() {
-  alert("こんにちは!");
-}
-
-window.onmouseup = doFunc;
-
-
window.onmouseup = function() {
-  alert("こんばんは!");
-};
-
-
<!DOCTYPE html>
-<html lang="ja">
-<head>
-<meta charset="UTF-8" />
-<title>onmouseup のテスト</title>
-
-<script>
-window.onmouseup = mouseup;
-
-function mouseup() {
-  alert("mouseup イベントを検出!");
-}
-</script>
-
-</head>
-<body>
-<p>ページ上をマウスのボタンでクリックし、数秒押し続け、ボタンを放します。
-マウスのボタンを放すことで、 mouseup イベントが発生します。</p>
-</body>
-</html>
-
-

注記

-

mouseup イベントは、ドキュメント内のどこででも、ユーザがマウスの左ボタンを放すことによって発生します。

-

仕様

-

標準仕様書には含まれていません。

diff --git a/files/ja/web/api/window/onreset/index.html b/files/ja/web/api/window/onreset/index.html deleted file mode 100644 index c9862667e8..0000000000 --- a/files/ja/web/api/window/onreset/index.html +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: window.onreset -slug: Web/API/Window/onreset -tags: - - DOM - - Gecko - - Gecko DOM Reference - - Window -translation_of: Web/API/GlobalEventHandlers/onreset ---- -
- {{ApiRef}}
-

概要

-

フォームの reset イベントに対応するイベントハンドラです。

-

構文

-
window.onreset = funcRef;
-
-

引数

- -

-
<!DOCTYPE html>
-<html lang="ja">
-<head>
-<meta charset="UTF-8" />
-<title>onreset のテスト</title>
-
-<script>
-function reg() {
-  window.onreset = hit;
-}
-
-function hit() {
- alert('リセットイベントが発生しました。');
-}
-</script>
-
-</head>
-<body onload="reg();">
-
-<form>
-  <div>
-    <textarea></textarea>
-  </div>
-  <div>
-    <input type="reset" value="reset" />
-  </div>
-</form>
-
-</body>
-</html>
-
-

注記

-

reset イベントは、ユーザがフォーム内のリセットボタン (<input type="reset"/>) をクリックした際に発生します。

-

仕様

-

標準仕様書には含まれていません。

diff --git a/files/ja/web/api/window/onresize/index.html b/files/ja/web/api/window/onresize/index.html deleted file mode 100644 index db2b2bbae9..0000000000 --- a/files/ja/web/api/window/onresize/index.html +++ /dev/null @@ -1,78 +0,0 @@ ---- -title: window.onresize -slug: Web/API/Window/onresize -tags: - - DOM - - Gecko - - Property - - Window -translation_of: Web/API/GlobalEventHandlers/onresize ---- -

{{ ApiRef() }}

- -

GlobalEventHandlers.onresize プロパティは、{{event("resize")}} イベントを受信するとトリガーされる {{domxref("EventHandler")}} を含みます。

- -

構文

- -
window.onresize = funcRef;
-
- -

引数

- - - -

- -
window.onresize = doFunc;
-
- -
<html>
-<head>
-
-<title>onresize test</title>
-
-</head>
-
-<body>
-<p>Resize the browser window to fire the resize event.</p>
-
-<p>Window height: <span id="height"></span></p>
-<p>Window width: <span id="width"></span></p>
-
-<script type="text/javascript">
-  var heightOutput = document.querySelector('#height');
-  var widthOutput = document.querySelector('#width');
-
-  function resize() {
-    heightOutput.textContent = window.innerHeight;
-    widthOutput.textContent = window.innerWidth;
-  }
-
-  window.onresize = resize;
-</script>
-</body>
-</html>
-
- -

注記

- -

ブラウザウィンドウのサイズが変更された後に resize イベントが発生します。

- -

仕様

- - - - - - - - - - - - - - -
使用ステータスコメント
{{SpecName('HTML WHATWG','webappapis.html#handler-onresize','onresize')}}{{Spec2('HTML WHATWG')}} 
diff --git a/files/ja/web/api/window/opener/index.html b/files/ja/web/api/window/opener/index.html new file mode 100644 index 0000000000..c1f7152c9c --- /dev/null +++ b/files/ja/web/api/window/opener/index.html @@ -0,0 +1,33 @@ +--- +title: window.opener +slug: Web/API/window.opener +tags: + - DOM + - DOM_0 + - Gecko + - Window +translation_of: Web/API/Window/opener +--- +
{{ApiRef}}
+ +

概要

+ +

現在のウィンドウを開いたウィンドウへの参照を返します。

+ +

構文

+ +
objRef = window.opener;
+
+ +

+ +
if (window.opener != indexWin) {
+  referToTop(window.opener);
+}
+
+ +

注記

+ +

別のウィンドウから({{domxref("Window.open")}} を使用して)開かれたウィンドウは、主ウィンドウへの参照を window.opener として保持します。現在のウィンドウが別のウィンドウから開かれたものではない場合、このメソッドは NULL を返します。

+ +

Windows Phone ブラウザは window.opener をサポートしていません(Edge 25.10586.36.0 でテストしました)。opener が異なるセキュリティゾーンにある場合、IE でもサポートされていません。

diff --git a/files/ja/web/api/window/restore/index.html b/files/ja/web/api/window/restore/index.html deleted file mode 100644 index 1510d2870e..0000000000 --- a/files/ja/web/api/window/restore/index.html +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: Window.restore() -slug: Web/API/Window/restore -translation_of: Web/API/Window/moveTo -translation_of_original: Web/API/Window/restore ---- -

{{APIRef}}

- -

このメソッドは現在動作していませんが、代わりに次のメソッドを利用することができます:

- -

window.moveTo(window.screenX, window.screenY);

diff --git a/files/ja/web/api/window/stop/index.html b/files/ja/web/api/window/stop/index.html new file mode 100644 index 0000000000..a32bbd359a --- /dev/null +++ b/files/ja/web/api/window/stop/index.html @@ -0,0 +1,58 @@ +--- +title: window.stop +slug: Web/API/window.stop +tags: + - API + - DOM + - Gecko + - HTML DOM +translation_of: Web/API/Window/stop +--- +
{{ApiRef}}
+ +

概要

+ +

このメソッドは、ウィンドウの読み込みを停止します。

+ +

構文

+ +
window.stop()
+
+ +

+ +
<script>
+stop();
+</script>
+
+<p>このパラグラフは読み込まれないでしょう。</p>​
+ +

注記

+ +

stop() メソッドは、ブラウザの停止ボタンをクリックすることと全く同じです。スクリプトが読み込まれる順番のために、stop() メソッドは文書の読み込みを停止できない可能性がありますが、巨大な画像、新しいウィンドウなど、読み込みを遅延させるオブジェクトの読み込みを停止することはできるでしょう。

+ +

仕様

+ + + + + + + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('HTML WHATWG','browsers.html#dom-window-stop','Window.stop()')}}{{Spec2('HTML WHATWG')}}
{{SpecName('HTML5 W3C', 'browsers.html#dom-window-stop', 'Window.stop')}}{{Spec2('HTML5 W3C')}}
+ +

互換性

+ +

stop() メソッドは、Internet Explorer でサポートされません。

diff --git a/files/ja/web/api/window/unescape/index.html b/files/ja/web/api/window/unescape/index.html deleted file mode 100644 index 07564a02ee..0000000000 --- a/files/ja/web/api/window/unescape/index.html +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: window.unescape -slug: Web/API/Window/unescape -tags: - - DOM - - DOM_0 - - Gecko - - Gecko DOM Reference - - Window -translation_of: Web/JavaScript/Reference/Global_Objects/unescape -translation_of_original: Web/API/Window.unescape ---- -
- {{ApiRef}}
-

概要

-

16 進でエンコードされた値(例えば、クッキー)をデコードします。

-

構文

-
regular = window.unescape(escaped)
- -

-
alert( unescape("%5C") );  // 表示結果: "\"
-
-alert( unescape("https%3A//developer.mozilla.org") );  // 表示結果: "https://developer.mozilla.org"
-
-

仕様

-

{{DOM0}} 但し、ECMA-262 の非標準化セクションで言及されています。

-

関連情報

- diff --git a/files/ja/web/api/window/url/index.html b/files/ja/web/api/window/url/index.html deleted file mode 100644 index ac758d1b3b..0000000000 --- a/files/ja/web/api/window/url/index.html +++ /dev/null @@ -1,101 +0,0 @@ ---- -title: window.URL -slug: Web/API/Window/URL -tags: - - API - - DOM - - Property - - Reference - - Window -translation_of: Web/API/URL -translation_of_original: Web/API/Window/URL ---- -

{{ApiRef("Window")}}{{SeeCompatTable}}

- -

Window.URL プロパティは、オブジェクト URL の作成や操作に用いる静的なメソッドを提供します。

- -

{{AvailableInWorkers}}

- -

構文

- -

静的なメソッドの呼び出し:

- -
img.src = URL.{{domxref("URL.createObjectURL", "createObjectURL")}}(blob);
- -

新しいオブジェクトの構築:

- -
var url = new {{domxref("URL.URL", "URL")}}("../cats/", "https://www.example.com/dogs/");
- -

仕様

- - - - - - - - - - - - - - -
仕様ステータスコメント
{{SpecName('URL', '#dom-url', 'URL')}}{{Spec2('URL')}}初期定義。
- -

ブラウザー実装状況

- -

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
機能ChromeFirefox (Gecko)Internet ExplorerOperaSafari
基本サポート8.0[2]{{CompatGeckoDesktop("2.0")}}[1]
- {{CompatGeckoDesktop("19.0")}}
10.015.0[2]6.0[2]
- 7.0
-
- -
- - - - - - - - - - - - - - - - - - - -
機能AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
基本サポート{{CompatVersionUnknown}}[2]{{CompatGeckoMobile("14.0")}}[1]
- {{CompatGeckoMobile("19.0")}}
{{CompatVersionUnknown}}15.0[2]6.0[2]
-
- -

[1] Gecko 2 (Firefox 4) から Gecko 18 まで、Gecko は非標準の nsIDOMMozURLProperty 内部型を返していました。 実際には、何の違いもありません。

- -

[2] 非標準の webkitURL という名前で実装されています。

-- cgit v1.2.3-54-g00ecf