Running code:
$(location).attr('href','http://site.ru/go#1000' ); Must: open this page and go to the anchor there
As it is: just goes to the anchor.
how to fix?
Running code:
$(location).attr('href','http://site.ru/go#1000' ); Must: open this page and go to the anchor there
As it is: just goes to the anchor.
how to fix?
After your team try
location.reload(); to refresh the page.
UPD
You can specify true to reload the page from the server http://www.w3schools.com/jsref/met_loc_reload.asp
UPD2
To go to the anchor without rebooting, use
location.replace(ТУТ URL#АНКОР); location.replace() for a simple transition without downloading w3schools.com/jsref/met_loc_replace.asp - Visman 5:47 pmUse native JS
window.location = 'http://site.ru/go#1000'; location.reload(); - korytoffSource: https://ru.stackoverflow.com/questions/453994/
All Articles