For my problem this code worked, I had to navigate to an anchor tag on page load :
$(window).scrollTop($('a#captchaAnchor').position().top);
For that matter you can use this on any element, not just an anchor tag.
More Related Contents:
- How to focus on a form input text field on page load using jQuery?
- javascript change element from another page
- How do I access the link to the content? [closed]
- This doesn’t seem right? Javascript isn’t working
- Pure JavaScript equivalent of jQuery’s $.ready() – how to call a function when the page/DOM is ready for it [duplicate]
- Detect all changes to a (immediately) using JQuery
- Refresh/reload the content in Div using jquery/ajax
- How to delete a localStorage item when the browser window/tab is closed?
- Get list of data-* attributes using javascript / jQuery
- Jquery Mobile – $.mobile.changepage not loading external .JS files
- Create table with jQuery – append
- jQuery: how to change tag name?
- Disable dragging an image from an HTML page
- When using jQuery on(), why use (document) vs. the element itself?
- Use a new CSS file to override current website’s
- Detect if browser is running on an Android or iOS device
- Adding rows dynamically with jQuery
- Count textarea characters
- How can I change the font (family) for the labels in Chart.JS?
- Preview images before upload
- jQuery equivalent of getting the context of a Canvas
- Unusual shape of a textarea?
- How to display Image dynamically on UI?
- Force page scroll position to top at page refresh in HTML
- JQuery html() vs. innerHTML
- How do I edit PHP variable with JavaScript/jQuery?
- Include html in another html file [duplicate]
- Changing cursor to waiting in javascript/jquery
- Returning value from confirmation dialog using JQuery UI dialog
- How can I calculate the difference between two times that are in 24 hour format?