Maintain Scroll Position of large HTML page when client returns

后端 未结 3 485
孤街浪徒
孤街浪徒 2020-12-08 10:43

I\'m serving very long html pages (short ebooks)

When client returns, too much of a hassle to try to find exact place where left off due to long html page.

3条回答
  •  广开言路
    2020-12-08 11:31

    I made small jquery plugin that you can include and have this functionallity without cookies etc. Include just before end of body tag.

      
    
    

    https://github.com/evaldsurtans/maintainscroll.jquery.js

提交回复
热议问题