Expanding a hidden div by referring with an anchor from external page

前端 未结 3 1649
暖寄归人
暖寄归人 2021-01-22 12:02

I have a script which hides (display:none) certain divs in the list on page load. Div contents represents description of a book, and the whole list is some sort of bibliography.

3条回答
  •  自闭症患者
    2021-01-22 12:31

    You can use the window.location.hash to see the hash value. From there you can getElementById(hashValue) and show it.

提交回复
热议问题