How to make navigation with anchor inside a page

In my experience, .scrollTo(x,y) doesn’t work in the editor but .scrollIntoView() works just fine.

document.getElementById(‘PUT YOUR ID HERE’).scrollIntoView();

Of course, you still need to set a unique ID on your TARGET destination.

Hope that helps.

1 Like