On page load - how to go to page anchor [closed]
I have an url like that ../page/5/product
This page have anchors to ../page/5/product/10#anchor01 , ../page/5/product/8#anchor01 etc.
How is it possible to jump, after the page is loaded, to the anchor displayed on the new page.
Hope someone could give me a hint.
Changing the value of hash
of the location
object will automagicly lead you to the anchor.
location.hash = "#anchor";
精彩评论