horst Posted August 19, 2019 Share Posted August 19, 2019 When I load a site per link with URL & anchor (https://www.example.com/#anchor), is it possible to catch / prevent the native jump and instead delegate this to an own javascript? I found many resources about smoothscrolling within a doc, but I need to know if there is an event that can be catched, before a browser does a native anchor jump. :) Link to comment Share on other sites More sharing options...
dragan Posted August 19, 2019 Share Posted August 19, 2019 You could try one of the suggestions from here. 2 1 Link to comment Share on other sites More sharing options...
horst Posted August 19, 2019 Author Share Posted August 19, 2019 27 minutes ago, dragan said: You could try one of the suggestions from here. This looks good! Will try it in the afternoon. Many thanks. ? Link to comment Share on other sites More sharing options...
Recommended Posts