function scrollTo(hash) {
location.hash = "#" + hash;
}
No jQuery required at all!
More Related Contents:
- Scroll Function working in reverse order [closed]
- Smooth scrolling when clicking an anchor link
- Trigger event when user scroll to specific element – with jQuery
- Keep overflow div scrolled to bottom unless user scrolls up
- How to scroll to top of page with JavaScript/jQuery?
- jQuery Text to Link Script? [duplicate]
- prevent Scroll bubbling from element to window
- How to do a horizontal scroll on mouse wheel scroll?
- How to load images dynamically (or lazily) when users scrolls them into view
- javascript: detect scroll end
- HTML anchor link – href and onclick both?
- jQuery jump or scroll to certain position, div or target on the page from button onclick [duplicate]
- ScrollTo function in AngularJS
- Scrolling Overflowed DIVs with JavaScript
- Auto-Scroll to next anchor at Mouse-wheel
- How to check if element is visible after scrolling?
- How to send a JSON object using html form data
- JavaScript data grid for millions of rows [closed]
- How to get a HTML element from a string with jQuery
- Setting href attribute at runtime
- width/height after transform
- putting html inside an iframe (using javascript)
- Detect if a page has a vertical scrollbar?
- How do I abort image load requests without using window.stop()
- Redirect automatically when selecting an item from a select drop-down list
- How to pass variable value between different html pages in javascript
- Attach a blob to an input of type file in a form
- Pausing CSS animation with javascript and also jumping to a specific place in the animation
- How to replace the entire html webpage with ajax response?
- Does jQuery strip some html elements from a string when using .html()?