Javascript to make the page jump to a specific location

2020 Answer

A simple and modern way to do this would be like this:

document.getElementById("jump_to_this_location").scrollIntoView({behavior: 'smooth'});

The behaviour: 'smooth' argument makes the jump… well… smooth. Which is something probably most of you want.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)