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/moveby/index.html | 55 +++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 files/ja/web/api/window/moveby/index.html (limited to 'files/ja/web/api/window/moveby') diff --git a/files/ja/web/api/window/moveby/index.html b/files/ja/web/api/window/moveby/index.html new file mode 100644 index 0000000000..7e5ebbc4c3 --- /dev/null +++ b/files/ja/web/api/window/moveby/index.html @@ -0,0 +1,55 @@ +--- +title: window.moveBy +slug: Web/API/Window/moveBy +tags: + - DOM + - DOM_0 + - Gecko + - Gecko DOM Reference + - Window +translation_of: Web/API/Window/moveBy +--- +
{{ApiRef}}
+ +

概要

+ +

指定された量だけ現在のウィンドウを移動します。

+ +

構文

+ +
window.moveBy(deltaX, deltaY)
+
+ +

引数

+ + + +

+ +
function budge() {
+  moveBy(10, -10);
+}
+ +

注記

+ +

この関数に対して、負の数を引数に使うことができます。このメソッドは相対移動を、{{domxref("window.moveTo")}} は、絶対移動を行います。

+ +

Firefox 7 より、以下の規則 に従い、 Web サイトからのブラウザのウィンドウの移動はできなくなっています。

+ +
    +
  1. {{domxref("window.open")}} によって作成されたものでないタブやウィンドウを移動することはできません。
  2. +
  3. ウィンドウに 1 つよりも多くのタブがある場合、タブやウィンドウを移動することはできません。
  4. +
+ +

仕様

+ +

{{DOM0}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf