Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

351
Vistas
How can I get dom‘s screen position not the browser client position?

just like that the screen is 1920*1080 then the browser is at position 100,100 then the dom is at postion 100,100 of the browser so how can i get the dom's position of screen maybe 202,400 since the browser has border and title,so the dom's screen position is lager than 100+100 such as left is 100+100+2(border) 100+100+200(title of browser) so how can I get the dom's screen position by js here is the example picture example picture

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can use the screenX and screenY properties of a mouse event.

document.addEventListener('mousemove', (event) => console.log("Screen position (x,y): (" + event.screenX + ", " + event.screenY + ")"));
Move the mouse here and check console output.

See here for the details https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenX

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda