Anchor

HI,

In an onClick function, i am direct to a page as shown below
wixLocation.to(“/parts”);

Please how do I achieve going to a specific anchor on the " parts " page.

For example, onClick, I want to be taken to the parts page and autoscroll to Anchor 5 on the page.

Thanks

https://www.wix.com/corvid/reference/$w.Anchor.html
https://www.youtube.com/watch?v=2p_wPokh33Y

How to add url to an anchor in database ? we can do it easily with interface, but how if we store an anchor address into a database ? i’ve tried /url#anchorname not working

@sajati https://www.wix.com/corvid/forum/community-discussion/how-to-work-with-anchor-and-database