Coding Export to Anchor for "On Click event"

Hello all.

I have a menu button on my dynamic page that i would like to code to export to an anchor point on another page… is this possible > ‽‽

export function button7_onclick(event) {
wixLocation.to(/bio/userinput/${wixUsers.currentUser.id});