I am trying to write a script for a button that onclick it will redirect to the designated address than scroll to the position. but i'm having some trouble with getting it to scroll after it goes to the designated url. can someone help?
heres what I have:
window.location.href = "../AllMenu2.php";
It's not possible to scroll in the new page with this script !
You could pass the position with the URI like with a GET
window.location.href = "../AllMenu2.php?scr=315";
To insert it in a script in the new page with a onload function...