aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/window/moveby
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/moveby
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/moveby')
-rw-r--r--files/ja/web/api/window/moveby/index.html55
1 files changed, 55 insertions, 0 deletions
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
+---
+<div>{{ApiRef}}</div>
+
+<h2 id="Summary" name="Summary">概要</h2>
+
+<p>指定された量だけ現在のウィンドウを移動します。</p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox">window.moveBy(<var>deltaX</var>, <var>deltaY</var>)
+</pre>
+
+<h3 id="Parameters" name="Parameters">引数</h3>
+
+<ul>
+ <li><code>deltaX</code> : ウィンドウを水平方向に移動させるピクセル単位の大きさ</li>
+ <li><code>deltaY</code> : ウィンドウを垂直方向に移動させるピクセル単位の大きさ</li>
+</ul>
+
+<h2 id="Example" name="Example">例</h2>
+
+<pre class="brush:js">function budge() {
+ moveBy(10, -10);
+}</pre>
+
+<h2 id="Notes" name="Notes">注記</h2>
+
+<p>この関数に対して、負の数を引数に使うことができます。このメソッドは相対移動を、{{domxref("window.moveTo")}} は、絶対移動を行います。</p>
+
+<p>Firefox 7 より、<a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=565541#c24">以下の規則</a> に従い、 Web サイトからのブラウザのウィンドウの移動はできなくなっています。</p>
+
+<ol>
+ <li>{{domxref("window.open")}} によって作成されたものでないタブやウィンドウを移動することはできません。</li>
+ <li>ウィンドウに 1 つよりも多くのタブがある場合、タブやウィンドウを移動することはできません。</li>
+</ol>
+
+<h2 id="Specification" name="Specification">仕様</h2>
+
+<p>{{DOM0}}</p>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li>{{domxref("window.moveTo")}}</li>
+</ul>