so, the thing is :
when someone clicks on a link to my website and page loads, prototypeJS is supposed to observe if there is a #elementId in the URL and stop browser from jumping to the element and do it with scrollTo().
I’ve seen this before but only with jQuery, but couldn’t figure out how to do it with prototypeJS.
You can get rid of anchors (<a href=”..” name=”elementId”>), so if you refer to not existing one then you page scroll gonna be just 0. You add onload listener, check if you have “#…” in url once DOM is loaded, if you do and id is valid then $(‘elementId’).scrollTo();