this is my link
echo '<a href="editlist.php?whatspacked=' . $idandcat . '&print=' . $tablename .'&scroll='. $idplace . '">';
the links is to the same page
I what to save the scroll position (Y)
1.how do send the position inside My link? ($idplace)
2.how do I set the position after getting it ?
tried to play with
<script>
window.onload = function () {
var scrollTop1 = document.getElementById('scroll').value;
document.documentElement.scrollTop = document.body.scrollTop = scrollTop1;
}
but can't get the scroll value
Thanks