First add id to the HTML element. This will serve as an anchor.
For instance:
id="mybox"
Now just add the link to #mybox on this page. For instance. example.com/index.html#mybox
<a href="#mybox">Box</a>
As already mentioned, they have nothing to do with javascript; it is not required for this.
source share