I have a ASP.NET MVC app.
How do I set the scroll position of a page on page load at a defined point?
Can I do it with an anchor, if so how??
Malcolm
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You just have to append #div-name at the end of the page address. Example:
Set page scroll position on page load of MVC app
Set page scroll position on page load of MVC app – page address
#2249506 – div name
If you want to do it when page is loaded, you can write JavaScript:
Using jQuery, when document is loaded: