How to make the page load to an anchor tag?

后端 未结 4 946
走了就别回头了
走了就别回头了 2020-12-31 17:04

how could I, or is it possible, to make it so when the webpage loads, the first thing it shows you is the part of the page, where the anchor tag is you want the person to fi

4条回答
  •  不思量自难忘°
    2020-12-31 17:23

    Use javascript.

    Solution 1

    When the document loads, go to the "hash" or anchor that you want

    
    

    Solution 2

    In the header:

    
    

    On the body tag:

    
    

    And your anchor:

    >

提交回复
热议问题