Jump to an Anchor

Hello,

Currently using:

$w("#anchor1").scrollTo() 

to conditionally move a page where I want it to be. This unfortunately takes time to scroll. Is there a way to “Jump” to an anchor instead, so it instantly appears there without the animation?

I experimented a bit with :

scrollBy(x,x) 

but that command didn’t seem to work too well in Chrome.

Thanks!
David

Note that you are using ‘scroll’ function and it works by ‘scrolling’ up or down the relevant page regardless of if you use an anchor or want to go to a set point on the page.

https://support.wix.com/en/article/request-setting-links-to-directly-jump-to-the-anchored-section-instead-of-the-scroll-to-section-effect

Yes, I was looking if there was another way to go to a certain point on a page (either an anchor or specific y value) without scrolling. From your link it looks as though this is not functionality that currently exists.

@dwklink

You can also try this to jump directly to the link. but it requires the full path to the link on the page including the domain name and page and the element used needs to be linkable to begin with.
For example: http:/mydomain.com/thepagename/thelinkID

Or you can try it with the use of adding html to your page:
https://www.htmlgoodies.com/tutorials/getting_started/article.php/3479511#welcomeback