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

108
Views
Javascript How to scroll down window to make newly added comment visible

when I'm on the page and adding a new comment, sometimes it's not visible. I would like the user to see the whole comment not just piece of it. Is it possible to scroll window after executing a method that adds new comment? I tried window.scroll, window.scrollBy but they did not work at all. Here you can see how it looks now and where is the scrollbar: As is now

To be

Scrollbar

The first comment on top of the list is the newly added element but last of the array

about 4 years ago · Juan Pablo Isaza
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!