Is it possible to take a user back to the area of a page where they scrolled down to when pressing the back button in a browser? As in --- pageA is double your screen size
//For Angular
//Save your scroll position once you scroll
@HostListener('window:scroll', ['$event']) onScrollEvent($event){
sessionStorage.scrollPos = window.scrollY
}
//Scroll to the save value postion
ngAfterViewInit(){
window.scrollTo(0, sessionStorage.scrollPos)
}