Input element problem

Do you have a tested way of navigating to anchors using wix code? the anchor locations are not fixed as the elements above the anchors are collapsible.