Ah, I thought you wanted the user to get back to an arbitrary position on the page. If you want to take them to a specific place, every time you can set the id attribute of the element you want to scroll into view, and append #id_value to the URI. Or create a link on the page
<a href="#id_value">Scroll down</a>
Or use javascript
var el = document.getElementById('id_value');
el.scrollIntoView(el);
But, using javascript if you don't have to seems silly. So if I understood you correctly this time around, go with document fragment as described above. However, if you do need to scroll to an arbitrary position, you can use either element.scrollIntoView or window.scroll, depending on how you implement your logic.
The link
<script>
document.write('<a href="javascript:void(0);" onclick="document.location= \'http://example.com/file.php?scrollY=\'+window.scrollY">Reload and scroll</a>');
</script>
<noscript>
<a href="http://example.com/file.php">Reload</a>
</noscript>
if (isset($_GET['scrollY']))
$bodyOnload = ' onload="window.scroll(0, '. $_GET['scrollY'] .')"';
else
$bodyOnload = '';
// ...
echo '<body'.$bodyOnload.'>';
Do note that window.scrollY may not exist in all browsers. The other version is window.offsetY iirc. You should definitely test it anyway.