René's URL Explorer Experiment


Title: Coordenadas en JavaScript | W3docs

Open Graph Title: Coordenadas en JavaScript

X Title: Coordenadas en JavaScript

Description: Aprende los dos sistemas de coordenadas del navegador en JavaScript: viewport y documento, cómo convertir entre ellos y usar getBoundingClientRect().

Open Graph Description: Aprende los dos sistemas de coordenadas del navegador en JavaScript: viewport y documento, cómo convertir entre ellos y usar getBoundingClientRect().

X Description: Aprende los dos sistemas de coordenadas del navegador en JavaScript: viewport y documento, cómo convertir entre ellos y usar getBoundingClientRect().

Opengraph URL: https://es.w3docs.com/learn-javascript/javascript-coordinates

X: @w3docs

direct link

Domain: es.w3docs.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"Article","@id":"https://es.w3docs.com/learn-javascript/javascript-coordinates#article","headline":"Coordenadas en JavaScript","description":"Aprende los dos sistemas de coordenadas del navegador en JavaScript: viewport y documento, cómo convertir entre ellos y usar getBoundingClientRect().","inLanguage":"es","url":"https://es.w3docs.com/learn-javascript/javascript-coordinates","isPartOf":{"@id":"https://es.w3docs.com/#website"},"publisher":{"@id":"https://es.w3docs.com/#organization"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://es.w3docs.com/"},{"@type":"ListItem","position":2,"name":"Aprender JavaScript","item":"https://es.w3docs.com/learn-javascript"},{"@type":"ListItem","position":3,"name":"Coordenadas","item":"https://es.w3docs.com/learn-javascript/javascript-coordinates"}]}
{"@context":"https://schema.org","@type":"Organization","@id":"https://es.w3docs.com/#organization","name":"W3docs","url":"https://es.w3docs.com/","logo":"https://www.w3docs.com/build/images/logo-amp.png","sameAs":["https://x.com/w3docs","https://www.facebook.com/w3docs","https://github.com/w3docs","https://linkedin.com/company/w3docs"]}
{"@context":"https://schema.org","@type":"WebSite","@id":"https://es.w3docs.com/#website","name":"W3docs","url":"https://es.w3docs.com/","inLanguage":"es","publisher":{"@id":"https://es.w3docs.com/#organization"}}

og:site_nameW3docs
og:localees_ES
og:imagehttps://www.w3docs.com/build/images/logo-amp.png
og:typearticle
twitter:cardsummary_large_image
twitter:imagehttps://www.w3docs.com/build/images/logo-amp.png

Links:

W3docshttps://es.w3docs.com/
Aprender HTMLhttps://es.w3docs.com/learn-html
Aprender CSShttps://es.w3docs.com/learn-css
Aprender JavaScripthttps://es.w3docs.com/learn-javascript
Aprender Githttps://es.w3docs.com/learn-git
Aprender Javahttps://es.w3docs.com/learn-java
Aprender PHPhttps://es.w3docs.com/learn-php
Aprender Pythonhttps://es.w3docs.com/learn-python
Cursoshttps://es.w3docs.com/course
Cuestionarioshttps://es.w3docs.com/quiz
Ejercicioshttps://es.w3docs.com/exercise
HTML Editorhttps://es.w3docs.com/tools/editor
Password Generatorhttps://es.w3docs.com/tools/password-generator
HTML Encoderhttps://es.w3docs.com/tools/html-encoder
Code Diffhttps://es.w3docs.com/tools/code-diff
JSON Beautifierhttps://es.w3docs.com/tools/json-beautify
Ver los 13 →https://es.w3docs.com/tool
Color Pickerhttps://es.w3docs.com/color/color-picker
Color Converterhttps://es.w3docs.com/color/color-converter
Color mixerhttps://es.w3docs.com/color/color-mixer
Color Hexhttps://es.w3docs.com/color/color-hex
Colors HSLhttps://es.w3docs.com/color/color-hsl
Ver los 10 →https://es.w3docs.com/tool
String Length Calculatorhttps://es.w3docs.com/tools/string-length-calculator
MD5 Hash Generatorhttps://es.w3docs.com/tools/string-md5-generator
Sha256 Hash Generatorhttps://es.w3docs.com/tools/string-sha256-generator
String Reversehttps://es.w3docs.com/tools/string-revers
URL Encoderhttps://es.w3docs.com/tools/string-url-encoder
Ver los 19 →https://es.w3docs.com/tool
Javascript Formatterhttps://es.w3docs.com/tools/formatter/javascript
CSS Formatterhttps://es.w3docs.com/tools/formatter/css
HTML Formatterhttps://es.w3docs.com/tools/formatter/html
Json Formatterhttps://es.w3docs.com/tools/formatter/json
PHP Formatterhttps://es.w3docs.com/tools/formatter/php
Englishenhttps://www.w3docs.com/learn-javascript/javascript-coordinates
Deutschdehttps://de.w3docs.com/learn-javascript/javascript-coordinates
Русскийruhttps://ru.w3docs.com/learn-javascript/javascript-coordinates
Françaisfrhttps://fr.w3docs.com/learn-javascript/javascript-coordinates
Españoleshttps://es.w3docs.com/learn-javascript/javascript-coordinates
Portuguêspthttps://pt.w3docs.com/learn-javascript/javascript-coordinates
Italianoithttps://it.w3docs.com/learn-javascript/javascript-coordinates
Iniciar sesiónhttps://es.w3docs.com/api/auth/login
Aprender JavaScripthttps://es.w3docs.com/learn-javascript
Introducciónhttps://es.w3docs.com/learn-javascript/javascript-intro
Comenzar a usar Javascripthttps://es.w3docs.com/learn-javascript/start-using-javascript
Comentarios en JShttps://es.w3docs.com/learn-javascript/javascript-comments
JS con el DOMhttps://es.w3docs.com/learn-javascript/javascript-with-dom
JS Use Stricthttps://es.w3docs.com/learn-javascript/javascript-use-strict
Variables en JShttps://es.w3docs.com/learn-javascript/javascript-variables
Tipos de datos JShttps://es.w3docs.com/learn-javascript/javascript-data-types
Conversiones de Tipos en JShttps://es.w3docs.com/learn-javascript/type-conversions
Funciones interactivas de JShttps://es.w3docs.com/learn-javascript/interactive-functions
Operadores JShttps://es.w3docs.com/learn-javascript/operators
Operadores de comparación en JShttps://es.w3docs.com/learn-javascript/comparison-operators
Operadores Lógicos de JShttps://es.w3docs.com/learn-javascript/logical-operators
Fusión Nula en JS (??)https://es.w3docs.com/learn-javascript/nullish-coalescing-operator
Operadores condicionales en JShttps://es.w3docs.com/learn-javascript/conditional-operators
JS Switchhttps://es.w3docs.com/learn-javascript/javascript-switch
Bucles en JShttps://es.w3docs.com/learn-javascript/javascript-loops
Funciones JShttps://es.w3docs.com/learn-javascript/javascript-functions
Expresiones de Función en JShttps://es.w3docs.com/learn-javascript/function-expressions
Funciones flecha en JShttps://es.w3docs.com/learn-javascript/arrow-functions-the-basics
JS ES6https://es.w3docs.com/learn-javascript/javascript-es6
Objetos JShttps://es.w3docs.com/learn-javascript/javascript-objects
Copia de Objetos en JShttps://es.w3docs.com/learn-javascript/object-references-and-copying
Métodos de objetos JS, "this"https://es.w3docs.com/learn-javascript/object-methods-this
Recolección de basura en JShttps://es.w3docs.com/learn-javascript/garbage-collection
Tipos Symbol en JShttps://es.w3docs.com/learn-javascript/symbol-types
Conversión de objeto a primitivo en JShttps://es.w3docs.com/learn-javascript/object-to-primitive-conversion
Constructor de JS, operador "new"https://es.w3docs.com/learn-javascript/constructor-operator-new
Encadenamiento Opcional (?.)https://es.w3docs.com/learn-javascript/optional-chaining
Métodos de primitivos en JShttps://es.w3docs.com/learn-javascript/methods-of-primitives
Números en JShttps://es.w3docs.com/learn-javascript/numbers
JS Mathhttps://es.w3docs.com/learn-javascript/javascript-math
Strings en JShttps://es.w3docs.com/learn-javascript/strings
Arrays en JShttps://es.w3docs.com/learn-javascript/javascript-array
Métodos de array en JShttps://es.w3docs.com/learn-javascript/array-methods
Iterables en JShttps://es.w3docs.com/learn-javascript/iterables
JS Map y Sethttps://es.w3docs.com/learn-javascript/map-and-set
JS WeakMap y WeakSethttps://es.w3docs.com/learn-javascript/weakmap-and-weakset
JS Object.keys, Values, Entrieshttps://es.w3docs.com/learn-javascript/object-keys-values-entries
Desestructuración en JShttps://es.w3docs.com/learn-javascript/destructuring-assignment
Fecha y hora en JShttps://es.w3docs.com/learn-javascript/javascript-date
Métodos JS JSON, toJSONhttps://es.w3docs.com/learn-javascript/working-with-json
Recursión y Pila en JShttps://es.w3docs.com/learn-javascript/recursion-and-stack
Parámetros Rest y Sintaxis Spread en JShttps://es.w3docs.com/learn-javascript/rest-parameters-and-spread-syntax
Ámbito de variables en JShttps://es.w3docs.com/learn-javascript/variable-scope
JS El antiguo "var"https://es.w3docs.com/learn-javascript/the-old-var
Objeto global en JShttps://es.w3docs.com/learn-javascript/global-object
Objeto función en JS, NFEhttps://es.w3docs.com/learn-javascript/function-object-nfe
JS La sintaxis "new Function"https://es.w3docs.com/learn-javascript/the-new-function-syntax
JS setTimeout y setIntervalhttps://es.w3docs.com/learn-javascript/scheduling-settimeout-and-setinterval
Decoradores y reenvío en JS, call/applyhttps://es.w3docs.com/learn-javascript/decorators-and-forwarding-call-apply
Debounce y Throttle en JShttps://es.w3docs.com/learn-javascript/debounce-and-throttle
Vinculación de funciones en JShttps://es.w3docs.com/learn-javascript/function-binding
Funciones flecha de JS revisitadashttps://es.w3docs.com/learn-javascript/arrow-functions-revisited
Closures en JShttps://es.w3docs.com/learn-javascript/javascript-closures
Flags y descriptores de propiedades en JShttps://es.w3docs.com/learn-javascript/property-flags-and-descriptors
Getters y Setters de Propiedades en JShttps://es.w3docs.com/learn-javascript/property-getters-and-setters
Introducción al DOMhttps://es.w3docs.com/learn-javascript/javascript-html-dom
Los nodos del DOMhttps://es.w3docs.com/learn-javascript/understanding-the-dom-nodes
Seleccionar elementos del DOMhttps://es.w3docs.com/learn-javascript/selecting-dom-elements
Manipulación del DOMhttps://es.w3docs.com/learn-javascript/dom-manipulation
Trabajar con Estilos en el DOMhttps://es.w3docs.com/learn-javascript/working-with-styles-in-dom
Manejo de Eventos en el DOMhttps://es.w3docs.com/learn-javascript/event-handling-in-dom
Recorrido del DOMhttps://es.w3docs.com/learn-javascript/traversing-the-dom
Técnicas de Manipulación del DOMhttps://es.w3docs.com/learn-javascript/dom-manipulation-techniques
Trabajar con Formularios en el DOMhttps://es.w3docs.com/learn-javascript/working-with-forms-in-dom
Técnicas Avanzadas del DOMhttps://es.w3docs.com/learn-javascript/advanced-dom-techniques
Bibliotecas de Manipulación del DOMhttps://es.w3docs.com/learn-javascript/dom-manipulation-libraries
Compatibilidad DOM entre navegadoreshttps://es.w3docs.com/learn-javascript/dom-browser-compatibility
Accesibilidad en el DOMhttps://es.w3docs.com/learn-javascript/dom-accessibility-considerations
Depuración y herramientashttps://es.w3docs.com/learn-javascript/dom-debugging-and-tools
Optimización del rendimientohttps://es.w3docs.com/learn-javascript/dom-performance-optimization
Elementos Interactivos y Widgetshttps://es.w3docs.com/learn-javascript/dom-nteractive-elements-and-widgets
Herencia prototípica en JShttps://es.w3docs.com/learn-javascript/prototypal-inheritance
Prototipos Nativos de JShttps://es.w3docs.com/learn-javascript/native-prototypes
Métodos de prototipo JS, objetos sin `__proto__`https://es.w3docs.com/learn-javascript/prototype-methods-objects-without-proto
Sintaxis básica de clases JShttps://es.w3docs.com/learn-javascript/class-basic-syntax
Herencia de clases en JShttps://es.w3docs.com/learn-javascript/class-inheritance
Propiedades y métodos estáticos en JShttps://es.w3docs.com/learn-javascript/static-properties-and-methods
Propiedades Privadas y Protegidas en JShttps://es.w3docs.com/learn-javascript/private-and-protected-properties-and-methods
Extendiendo Clases Integradas en JShttps://es.w3docs.com/learn-javascript/extending-built-in-classes
Verificación de clases en JS: "instanceof"https://es.w3docs.com/learn-javascript/class-checking-instanceof
Mixins en JShttps://es.w3docs.com/learn-javascript/mixins
Manejo de errores en JS, "try..catch"https://es.w3docs.com/learn-javascript/error-handling-try-catch
Errores Personalizados en JS, Extendiendo Errorhttps://es.w3docs.com/learn-javascript/custom-errors-extending-error
JS Introduction:callbackshttps://es.w3docs.com/learn-javascript/introduction-callbacks
Promise en JShttps://es.w3docs.com/learn-javascript/promise
Encadenamiento de Promesashttps://es.w3docs.com/learn-javascript/promises-chaining
Manejo de errores con promesas en JShttps://es.w3docs.com/learn-javascript/error-handling-with-promises
Promise APIhttps://es.w3docs.com/learn-javascript/promise-api
Promisificaciónhttps://es.w3docs.com/learn-javascript/promisification
Microtareashttps://es.w3docs.com/learn-javascript/microtasks
async/awaithttps://es.w3docs.com/learn-javascript/async-await
Generadoreshttps://es.w3docs.com/learn-javascript/generators
Iteradores y Generadores Asíncronoshttps://es.w3docs.com/learn-javascript/async-iterators-and-generators
Móduloshttps://es.w3docs.com/learn-javascript/modules-introduction
Export e Importhttps://es.w3docs.com/learn-javascript/export-and-import
Importaciones dinámicashttps://es.w3docs.com/learn-javascript/dynamic-imports
Proxy y Reflecthttps://es.w3docs.com/learn-javascript/proxy-and-reflect
Evalhttps://es.w3docs.com/learn-javascript/eval-run-a-code-string
Curryinghttps://es.w3docs.com/learn-javascript/currying
BigInthttps://es.w3docs.com/learn-javascript/bigint
Polyfills y transpiladoreshttps://es.w3docs.com/learn-javascript/polyfills-and-transpilers
Ventanas emergentes y métodos de Windowhttps://es.w3docs.com/learn-javascript/popups-and-window-methods
Comunicación entre Ventanashttps://es.w3docs.com/learn-javascript/cross-window-communication
ArrayBuffer y Arrays Binarioshttps://es.w3docs.com/learn-javascript/arraybuffer-binary-arrays
TextDecoder y TextEncoderhttps://es.w3docs.com/learn-javascript/textdecoder-and-textencoder
Blobhttps://es.w3docs.com/learn-javascript/javascript-blob
File y FileReaderhttps://es.w3docs.com/learn-javascript/file-and-filereader
JS Streams APIhttps://es.w3docs.com/learn-javascript/streams-api
Entorno del Navegador, Especificacioneshttps://es.w3docs.com/learn-javascript/browser-environment-specs
Búsqueda: getElement*, querySelector*https://es.w3docs.com/learn-javascript/searching-getelement-queryselector
Propiedades de los nodos: tipo, etiqueta y contenidohttps://es.w3docs.com/learn-javascript/node-properties-type-tag-and-contents
Atributos y Propiedadeshttps://es.w3docs.com/learn-javascript/attributes-and-properties
Modificar el documentohttps://es.w3docs.com/learn-javascript/modifying-the-document
Estilos y Claseshttps://es.w3docs.com/learn-javascript/styles-and-classes
Tamaños de ventana y desplazamientohttps://es.w3docs.com/learn-javascript/javascript-window-sizes-and-scrolling
Coordenadashttps://es.w3docs.com/learn-javascript/javascript-coordinates
Introducción a los eventos del navegador en JavaScripthttps://es.w3docs.com/learn-javascript/introduction-to-browser-events
Bubbling y Capturinghttps://es.w3docs.com/learn-javascript/bubbling-and-capturing
Delegación de eventoshttps://es.w3docs.com/learn-javascript/javascript-events
Acciones Predeterminadas del Navegadorhttps://es.w3docs.com/learn-javascript/browser-default-actions
Despacho de Eventos Personalizadoshttps://es.w3docs.com/learn-javascript/dispatching-custom-events
Conceptos básicos de eventos de ratónhttps://es.w3docs.com/learn-javascript/mouse-events-basics
Movimiento del ratónhttps://es.w3docs.com/learn-javascript/moving-the-mouse-mouseover-out-mouseenter-leave
Arrastrar y Soltarhttps://es.w3docs.com/learn-javascript/drag-and-drop-with-javascript
Teclado: keydown y keyuphttps://es.w3docs.com/learn-javascript/keyboard-keydown-and-keyup
Desplazamientohttps://es.w3docs.com/learn-javascript/javascript-scrolling
Propiedades y métodos de formularioshttps://es.w3docs.com/learn-javascript/form-properties-and-methods
Enfoque: focus/blurhttps://es.w3docs.com/learn-javascript/focusing-focus-blur
Eventos: change, input, cut, copy, pastehttps://es.w3docs.com/learn-javascript/events-change-input-cut-copy-paste
API Portapapeles JShttps://es.w3docs.com/learn-javascript/clipboard-api
Formularios: evento y método submithttps://es.w3docs.com/learn-javascript/forms-event-and-method-submit
Page:DOMContentLoaded, load, beforeunload, unloadhttps://es.w3docs.com/learn-javascript/page-domcontentloaded-load-beforeunload-unload
Scripts: async, deferhttps://es.w3docs.com/learn-javascript/scripts-async-defer
Carga de recursos: onload y onerrorhttps://es.w3docs.com/learn-javascript/resource-loading-onload-and-onerror
Mutation Observerhttps://es.w3docs.com/learn-javascript/mutation-observer
JS IntersectionObserverhttps://es.w3docs.com/learn-javascript/intersection-observer
JS ResizeObserverhttps://es.w3docs.com/learn-javascript/resize-observer
Selección y Rangohttps://es.w3docs.com/learn-javascript/selection-and-range
Bucle de eventos: microtareas y macrotareashttps://es.w3docs.com/learn-javascript/event-loop-microtasks-and-macrotasks
Canvashttps://es.w3docs.com/learn-javascript/canvas
Fetch APIhttps://es.w3docs.com/learn-javascript/fetch-api
FormDatahttps://es.w3docs.com/learn-javascript/javascript-formdata
Fetch: progreso de descargahttps://es.w3docs.com/learn-javascript/fetch-download-progress
Fetch: cancelarhttps://es.w3docs.com/learn-javascript/fetch-abort
Fetch: solicitudes de origen cruzadohttps://es.w3docs.com/learn-javascript/javascript-fetch-cross-origin-requests
Objetos URLhttps://es.w3docs.com/learn-javascript/url-objects
XMLHttpRequesthttps://es.w3docs.com/learn-javascript/xmlhttprequest
JS Server-Sent Eventshttps://es.w3docs.com/learn-javascript/server-sent-events
Carga de archivos reanudablehttps://es.w3docs.com/learn-javascript/resumable-file-upload
Cookies: document.cookiehttps://es.w3docs.com/learn-javascript/cookies-document-cookie
LocalStorage, SessionStoragehttps://es.w3docs.com/learn-javascript/localstorage-sessionstorage
IndexedDBhttps://es.w3docs.com/learn-javascript/javascript-indexeddb
Animaciones CSShttps://es.w3docs.com/learn-javascript/css-animations
Animaciones con JavaScripthttps://es.w3docs.com/learn-javascript/javascript-animations
Web Componentshttps://es.w3docs.com/learn-javascript/web-components
Elementos Personalizadoshttps://es.w3docs.com/learn-javascript/custom-elements
Shadow DOMhttps://es.w3docs.com/learn-javascript/javascript-shadow-dom
Elemento Templatehttps://es.w3docs.com/learn-javascript/template-element
Shadow DOM: Slots y Composiciónhttps://es.w3docs.com/learn-javascript/shadow-dom-slots-composition
Estilos en el Shadow DOMhttps://es.w3docs.com/learn-javascript/shadow-dom-styling
Shadow DOM y Eventoshttps://es.w3docs.com/learn-javascript/shadow-dom-and-events
Regex en JShttps://es.w3docs.com/learn-javascript/regex
Patrones y Banderashttps://es.w3docs.com/learn-javascript/patterns-and-flags
Clases de Caractereshttps://es.w3docs.com/learn-javascript/character-classes
Unicode: bandera "u" y clase \p{...}https://es.w3docs.com/learn-javascript/unicode-flag-u-and-class-p
Anclas: inicio ^ y fin $ de cadenahttps://es.w3docs.com/learn-javascript/anchors-string-start-and-end
Modo multilínea de los anclajes ^ $, flag "m"https://es.w3docs.com/learn-javascript/multiline-mode-of-anchors-flag-m
Límite de palabra: \bhttps://es.w3docs.com/learn-javascript/word-boundary-b
Escapar, caracteres especialeshttps://es.w3docs.com/learn-javascript/escaping-special-characters
Conjuntos y rangos [...]https://es.w3docs.com/learn-javascript/javascript-sets-and-ranges
Cuantificadores +, *, ? y {n}https://es.w3docs.com/learn-javascript/quantifiers-and-n
Cuantificadores codiciosos y perezososhttps://es.w3docs.com/learn-javascript/greedy-and-lazy-quantifiers
Grupos de capturahttps://es.w3docs.com/learn-javascript/capturing-groups
Referencias inversas: \n y \khttps://es.w3docs.com/learn-javascript/backreferences-in-pattern-n-and-k-name
Alternancia (OR) en JavaScripthttps://es.w3docs.com/learn-javascript/javascript-alternation-or
Lookahead y Lookbehindhttps://es.w3docs.com/learn-javascript/lookahead-and-lookbehind
Retroceso Catastróficohttps://es.w3docs.com/learn-javascript/catastrophic-backtracking
Bandera sticky "y", búsqueda en una posiciónhttps://es.w3docs.com/learn-javascript/sticky-flag-y-searching-at-position
Métodos de RegExp y Stringhttps://es.w3docs.com/learn-javascript/javascript-regexp
Web Animations APIhttps://es.w3docs.com/learn-javascript/animations-api
File APIhttps://es.w3docs.com/learn-javascript/file-api
Battery APIhttps://es.w3docs.com/learn-javascript/battery-api
WebGLhttps://es.w3docs.com/learn-javascript/webgl
Push APIhttps://es.w3docs.com/learn-javascript/push-api
Screen Orientation APIhttps://es.w3docs.com/learn-javascript/screen-orientation-api
History APIhttps://es.w3docs.com/learn-javascript/history-api
API de consolahttps://es.w3docs.com/learn-javascript/console-api
Fullscreen APIhttps://es.w3docs.com/learn-javascript/fullscreen-api
API de Validaciónhttps://es.w3docs.com/learn-javascript/validation-api
Web Storage APIhttps://es.w3docs.com/learn-javascript/storage-api
Web MIDI APIhttps://es.w3docs.com/learn-javascript/web-midi-api
Web Workers en JShttps://es.w3docs.com/learn-javascript/web-workers
Service Workershttps://es.w3docs.com/learn-javascript/service-workers
WebSocketshttps://es.w3docs.com/learn-javascript/websockets
Geolocalizaciónhttps://es.w3docs.com/learn-javascript/geolocation
WebRTChttps://es.w3docs.com/learn-javascript/webrtc
Web Audio APIhttps://es.w3docs.com/learn-javascript/web-audio-api
API de Notificacioneshttps://es.w3docs.com/learn-javascript/notifications-api
La API de Vibraciónhttps://es.w3docs.com/learn-javascript/the-vibration-api
API Intl de JShttps://es.w3docs.com/learn-javascript/intl-api
Tamaños de ventana y desplazamiento en JavaScripthttps://es.w3docs.com/learn-javascript/javascript-window-sizes-and-scrolling
Desplazamiento en JavaScripthttps://es.w3docs.com/learn-javascript/javascript-scrolling
Conceptos básicos de eventos de ratónhttps://es.w3docs.com/learn-javascript/mouse-events-basics
Pruébalo tú mismo »https://es.w3docs.com/tools/editor#code=PCFET0NUWVBFIGh0bWw-CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ-CiAgICA8dGl0bGU-Q2xpZW50LVNpZGUgQ29vcmRpbmF0ZXMgRXhhbXBsZTwvdGl0bGU-CiAgICA8c3R5bGU-CiNjb250YWluZXIgewogIHdpZHRoOiAxMDAlOwogIGhlaWdodDogMTAwJTsKICBiYWNrZ3JvdW5kLWNvbG9yOiBncmV5OwogIG1pbi1oZWlnaHQ6IDQwcHg7Cn0KICAgIDwvc3R5bGU-CjwvaGVhZD4KPGJvZHkgc3R5bGU9ImhlaWdodDogMjAwMHB4OyI-CiAgICA8ZGl2IGlkPSJjb250YWluZXIiPkNsaWNrIGFueXdoZXJlIGluIHRoZSBncmV5IGFyZWEgdG8gc2VlIENsaWVudC1TaWRlIGNvb3JkaW5hdGVzITwvZGl2PgogICAgPHNjcmlwdD4KICAgICAgICBjb25zdCBjb250YWluZXIgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgnY29udGFpbmVyJyk7CiAgICAgICAgZnVuY3Rpb24gc2hvd0Nvb3JkcyhldmVudCkgewogICAgICAgICAgICBhbGVydCgiQ2xpZW50LVNpZGUgWDogIiArIGV2ZW50LmNsaWVudFggKyAiLCBZOiAiICsgZXZlbnQuY2xpZW50WSk7CiAgICAgICAgfQogICAgICAgIGNvbnRhaW5lci5hZGRFdmVudExpc3RlbmVyKCdjbGljaycsIHNob3dDb29yZHMpOwogICAgPC9zY3JpcHQ-CjwvYm9keT4KPC9odG1sPg&lang=html
Pruébalo tú mismo »https://es.w3docs.com/tools/editor#code=PCFET0NUWVBFIGh0bWw-CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ-CiAgICA8dGl0bGU-UGFnZS1TaWRlIENvb3JkaW5hdGVzIEV4YW1wbGU8L3RpdGxlPgogICAgPHN0eWxlPgojY29udGFpbmVyIHsKICB3aWR0aDogMTAwJTsKICBoZWlnaHQ6IDEwMCU7CiAgYmFja2dyb3VuZC1jb2xvcjogZ3JleTsKICBtaW4taGVpZ2h0OiA0MHB4Owp9CiAgICA8L3N0eWxlPgo8L2hlYWQ-Cjxib2R5IHN0eWxlPSJoZWlnaHQ6IDIwMDBweDsiPgogICAgPGRpdiBpZD0iY29udGFpbmVyIj5DbGljayBhbnl3aGVyZSBpbiB0aGlzIGFyZWEgdG8gc2VlIFBhZ2UtU2lkZSBjb29yZGluYXRlcyE8L2Rpdj4KICAgIDxzY3JpcHQ-CiAgICAgICAgY29uc3QgY29udGFpbmVyID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2NvbnRhaW5lcicpOwogICAgICAgIGZ1bmN0aW9uIHNob3dQYWdlQ29vcmRzKGV2ZW50KSB7CiAgICAgICAgICAgIC8vIHBhZ2VYL3BhZ2VZIGFscmVhZHkgaW5jbHVkZSBzY3JvbGw7IHRoZSBtYW51YWwgdmVyc2lvbiBtdXN0IG1hdGNoCiAgICAgICAgICAgIGNvbnN0IG1hbnVhbFggPSBldmVudC5jbGllbnRYICsgd2luZG93LnNjcm9sbFg7CiAgICAgICAgICAgIGNvbnN0IG1hbnVhbFkgPSBldmVudC5jbGllbnRZICsgd2luZG93LnNjcm9sbFk7CiAgICAgICAgICAgIGFsZXJ0KCJwYWdlWC9ZOiAiICsgZXZlbnQucGFnZVggKyAiLCAiICsgZXZlbnQucGFnZVkgKwogICAgICAgICAgICAgICAgICAiXG5jbGllbnRYK3Njcm9sbFg6ICIgKyBtYW51YWxYICsgIiwgIiArIG1hbnVhbFkpOwogICAgICAgIH0KICAgICAgICBjb250YWluZXIuYWRkRXZlbnRMaXN0ZW5lcignY2xpY2snLCBzaG93UGFnZUNvb3Jkcyk7CiAgICA8L3NjcmlwdD4KPC9ib2R5Pgo8L2h0bWw-&lang=html
Pruébalo tú mismo »https://es.w3docs.com/tools/editor#code=P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kgewogICAgICAgICAgICAgICAgbW92ZUF0KGV2ZW50LmNsaWVudFggKyB3aW5kb3cuc2Nyb2xsWCwgZXZlbnQuY2xpZW50WSArIHdpbmRvdy5zY3JvbGxZKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgZG9jdW1lbnQuYWRkRXZlbnRMaXN0ZW5lcignbW91c2Vtb3ZlJywgb25Nb3VzZU1vdmUpOwogICAgICAgICAgICBkb2N1bWVudC5hZGRFdmVudExpc3RlbmVyKCdtb3VzZXVwJywgZnVuY3Rpb24gc3RvcERyYWcoKSB7CiAgICAgICAgICAgICAgICBkb2N1bWVudC5yZW1vdmVFdmVudExpc3RlbmVyKCdtb3VzZW1vdmUnLCBvbk1vdXNlTW92ZSk7CiAgICAgICAgICAgICAgICBkb2N1bWVudC5yZW1vdmVFdmVudExpc3RlbmVyKCdtb3VzZXVwJywgc3RvcERyYWcpOwogICAgICAgICAgICAgICAgZWxlbS5yZW1vdmVFdmVudExpc3RlbmVyKCdtb3VzZWRvd24nLCBvbk1vdXNlRG93bik7CiAgICAgICAgICAgIH0pOwogICAgICAgIH0KCiAgICAgICAgZWxlbS5hZGRFdmVudExpc3RlbmVyKCdtb3VzZWRvd24nLCBvbk1vdXNlRG93bik7CiAgICAgICAgZWxlbS5hZGRFdmVudExpc3RlbmVyKCdkcmFnc3RhcnQnLCBmdW5jdGlvbigpIHsgcmV0dXJuIGZhbHNlOyB9KTsKICAgIDwvc2NyaXB0Pgo8L2JvZHk-CjwvaHRtbD4&lang=html
Pruébalo tú mismo »https://es.w3docs.com/tools/editor#code=PCFET0NUWVBFIGh0bWw-CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ-CiAgICA8dGl0bGU-QW5pbWF0aW9uIFVzaW5nIENvb3JkaW5hdGVzPC90aXRsZT4KPC9oZWFkPgo8Ym9keT4KICAgIDxkaXYgaWQ9ImFuaW1hdGVNZSIgc3R5bGU9IndpZHRoOiA1MHB4OyBoZWlnaHQ6IDUwcHg7IGJhY2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R5Pgo8L2h0bWw-&lang=html
animaciones CSShttps://es.w3docs.com/learn-css/animation
Tamaños de ventana y desplazamientohttps://es.w3docs.com/learn-javascript/javascript-window-sizes-and-scrolling
Desplazamientohttps://es.w3docs.com/learn-javascript/javascript-scrolling
Conceptos básicos de eventos de ratónhttps://es.w3docs.com/learn-javascript/mouse-events-basics
← PreviousTamaños de ventana y desplazamientohttps://es.w3docs.com/learn-javascript/javascript-window-sizes-and-scrolling
Next →Introducción a los eventos del navegador en JavaScripthttps://es.w3docs.com/learn-javascript/introduction-to-browser-events
Los dos sistemas de coordenadashttps://es.w3docs.com/learn-javascript/javascript-coordinates#los-dos-sistemas-de-coordenadas
Leer coordenadas desde un evento de ratónhttps://es.w3docs.com/learn-javascript/javascript-coordinates#leer-coordenadas-desde-un-evento-de-ratón
Leer la posición de un elemento: getBoundingClientRect()https://es.w3docs.com/learn-javascript/javascript-coordinates#leer-la-posición-de-un-elemento-getboundingclientrect
Encontrar el elemento en un punto: elementFromPoint()https://es.w3docs.com/learn-javascript/javascript-coordinates#encontrar-el-elemento-en-un-punto-elementfrompoint
Manipular posiciones de elementos usando coordenadashttps://es.w3docs.com/learn-javascript/javascript-coordinates#manipular-posiciones-de-elementos-usando-coordenadas
Animar con coordenadashttps://es.w3docs.com/learn-javascript/javascript-coordinates#animar-con-coordenadas
Conclusiónhttps://es.w3docs.com/learn-javascript/javascript-coordinates#conclusión
Prácticahttps://es.w3docs.com/learn-javascript/javascript-coordinates#práctica
https://x.com/w3docs
https://github.com/w3docs
https://linkedin.com/company/w3docs
Aprender HTMLhttps://es.w3docs.com/learn-html
Aprender CSShttps://es.w3docs.com/learn-css
Aprender JavaScripthttps://es.w3docs.com/learn-javascript
Aprender Githttps://es.w3docs.com/learn-git
Aprender Javahttps://es.w3docs.com/learn-java
Aprender PHPhttps://es.w3docs.com/learn-php
Aprender Pythonhttps://es.w3docs.com/learn-python
Ejercicioshttps://es.w3docs.com/exercise
Cuestionarioshttps://es.w3docs.com/quiz
Editor Try-ithttps://es.w3docs.com/tools/editor
HTML Editorhttps://es.w3docs.com/tools/editor
Password Generatorhttps://es.w3docs.com/tools/password-generator
HTML Encoderhttps://es.w3docs.com/tools/html-encoder
Code Diffhttps://es.w3docs.com/tools/code-diff
JSON Beautifierhttps://es.w3docs.com/tools/json-beautify
Acerca dehttps://es.w3docs.com/about
Contactohttps://es.w3docs.com/contact
Política de Privacidadhttps://es.w3docs.com/privacy
Englishhttps://www.w3docs.com/learn-javascript/javascript-coordinates
Deutschhttps://de.w3docs.com/learn-javascript/javascript-coordinates
Русскийhttps://ru.w3docs.com/learn-javascript/javascript-coordinates
Françaishttps://fr.w3docs.com/learn-javascript/javascript-coordinates
Españolhttps://es.w3docs.com/learn-javascript/javascript-coordinates
Portuguêshttps://pt.w3docs.com/learn-javascript/javascript-coordinates
Italianohttps://it.w3docs.com/learn-javascript/javascript-coordinates

Viewport: width=device-width, initial-scale=1


URLs of crawlers that visited me.