Take this code snippet for example:
window.location.href = \'mysite.htm#images\';
Already being on the site mysite.htm and tri
mysite.htm
After you set the specified URL into location, issue window.location.reload(true). This will force browser to reload the page.
window.location.reload(true)