Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

180
Views
Quiero implementar seleccionar y desplazar la ventana sin tocar la barra de desplazamiento usando javascript

Supongamos que un usuario desea seleccionar todo el contenido de una página web, selecciona y comienza a arrastrar el puntero hacia el borde inferior de la ventana. Ahora, ¿quién podemos hacer que la página web se desplace hacia abajo?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Si alguien comienza a desplazarse por la página seleccionando algún texto, entonces es responsabilidad de la ventana desplazarse hacia abajo. Si desea realizar algunos eventos de scrolling , es posible que deba usar el método window.scrollTo .

 function scrollWin() { window.scrollTo(200, 0); }
 <!DOCTYPE html> <html> <style> body { width: 5000px; } </style> <body> <h1>The Window Object</h1> <h2>The scrollTo() Method</h2> <p>Click to scroll the document.</p> <button onclick="scrollWin()" style="position:fixed">Scroll to 200 horizontally!</button><br><br> </body> </html>

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!