There is page number 1 in which scrolling is called up using window.scrollTo(0, 0); . Everything works perfectly.
There is page β2 which contains iframe with page β1 . The problem is that when you call window.scrollTo(0, 0); or `window.parent.scrollTo (0, 0); The scroll is sometimes set not to the position (0,0) but has an indent of 30-50 pixels.