Programmatically scroll to an Anchor Tag

前端 未结 8 1572
孤独总比滥情好
孤独总比滥情好 2020-11-28 07:21

Consider the following code:

GoTo Label2
... [content here] ...
More content


        
8条回答
  •  时光取名叫无心
    2020-11-28 07:30

    Moving to a anchor from server side, example is c#.

    ClientScript.RegisterStartupScript(this.GetType(), "hash", "location.hash = '#form';", true);
    

提交回复
热议问题