How to scroll page automatically | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

How to scroll page automatically

I'm creating a chat app. When a user enters a message in the text box.And submit's. How to scroll the page automatically.

21st Jul 2018, 12:02 PM
Vj Abishek
Vj Abishek - avatar
1 Respuesta
0
you could use window.scrollTo(direction in x,direction in y);
2nd Aug 2018, 6:13 AM
Mahaki
Mahaki - avatar