Javascript page reload while maintaining current window position

前端 未结 4 933
旧巷少年郎
旧巷少年郎 2020-12-09 06:48

How do I refresh the page using Javascript without the page returning to the top.

My page refreshes using a timer but the problem is it goes back to the top every ti

4条回答
  •  半阙折子戏
    2020-12-09 07:17

    You can do it using a cookie based method:

    
        
            
        
        
            
        
    
    

    or you can do it with a form method:

    
        
            
        
        
            

    Just depends on your application's requirements and restrictions.

提交回复
热议问题