After much googling I found that you just need to do this:
location.hash = "elementId"
More Related Contents:
- Toggle show/hide element with jQuery [closed]
- How to capture null in javascript
- JQuery .focus() not work in .blur() event in Firefox
- Different look in desktop, how to setup
- Converting JavaScript object with numeric keys into array
- What’s the right way to decode a string that has special HTML entities in it? [duplicate]
- How to wait for the ‘end’ of ‘resize’ event and only then perform an action?
- How can javascript upload a blob?
- event.returnValue is deprecated. Please use the standard event.preventDefault() instead
- Finding matches between multiple JavaScript Arrays
- Prevent BODY from scrolling when a modal is opened
- Do something if screen width is less than 960 px
- Method overloading in Javascript
- Select all contents of textbox when it receives focus (Vanilla JS or jQuery)
- In jQuery, how do I select an element by its name attribute?
- How can I update window.location.hash without jumping the document?
- Prevent contenteditable adding on ENTER – Chrome
- jQuery.parseJSON vs JSON.parse
- Possible to associate label with checkbox without using “for=id”?
- Waiting on multiple asynchronous calls to complete before continuing
- Moving a focus when the input text field reaches a max length
- How do I wrap a text selection from window.getSelection().getRangeAt(0) with an html tag?
- How to scroll to an element in jQuery?
- Web browser: Hide mouse cursor [duplicate]
- Make an image follow mouse pointer
- What is jQuery(document) vs. $(document)
- Blur event stops click event from working?
- Randomize setInterval ( How to rewrite same random after random interval)
- Prevent ajax call from firing twice
- JavaScript runtime error: ‘$’ is undefined