The first thing is to insert a <a name=bookmark>
in the HTML document. From a few experiments, it looks it is better to have a “spot location” (no text simultaneously selected).
When inserting a hyperlink, you must choose Document and click on the “Target in Document” button to select the bookmark.
I create a “lorem ipsum” page with more than one screenful of text and added a link at the bottom to the top of document. File
>Preview in Web Browser
does not scroll to top of page. However, when saved as an HTML document and opened in a browser, scroll occurs after a click on the link.
In general, previews have limitation compared to their “live” equivalent. The preview is only there to check static (formatting) layout, not dynamic aspects like links.
To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!
In case you need clarification, edit your question (not an answer) or comment the relevant answer.