From 1109132f09d75da9a28b649c7677bb6ce07c40c0 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:41:45 -0500 Subject: initial commit --- files/es/web/api/window/moveby/index.html | 70 +++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 files/es/web/api/window/moveby/index.html (limited to 'files/es/web/api/window/moveby/index.html') diff --git a/files/es/web/api/window/moveby/index.html b/files/es/web/api/window/moveby/index.html new file mode 100644 index 0000000000..cd8cd4ba9d --- /dev/null +++ b/files/es/web/api/window/moveby/index.html @@ -0,0 +1,70 @@ +--- +title: Window.moveBy() +slug: Web/API/Window/moveBy +translation_of: Web/API/Window/moveBy +--- +
{{APIRef}}
+ +

Resumen

+ +

Mueve la actual ventana a consecuencia de una cantidad especificada.

+ +

Sintaxis

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

Parametros

+ + + +

Ejemplo

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

Notes

+ +

Puedes usar numeros negativos como parametros para esta función. Esta función realiza un movimiento relativo mientras que {{domxref("window.moveTo")}} hace un movimiento absoluto.

+ +

Desde Firefox 7, no es posible para un sitio web mover una ventana en el navegador, deacuerdo con las siguientes reglas:

+ +
    +
  1. No puedes mover una ventana o pestaña que no haya sido creada por window.open.
  2. +
  3. No puedes mover una ventana o pestaña cuando esta en una ventana con más de una sola pestaña.
  4. +
+ +

Especificación

+ + + + + + + + + + + + + + + + +
EspecificaciónEstadoComentario
{{ SpecName('CSSOM View', '#dom-window-moveby', 'window.moveBy()') }}{{ Spec2('CSSOM View') }} 
+ +

Compatilidad de Navegador

+ + + +

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

+ +

Ver también

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