Refresh Page for interval using js

前端 未结 5 505
陌清茗
陌清茗 2020-11-30 12:17

How can i refresh a page for every one minute using javascript. Note: I don\'t have control/option to edit HTML body tag (where we usually call onload function).

5条回答
  •  再見小時候
    2020-11-30 12:55

    You do not need to have the code in the body tag. Just add this snippet below and it should work no matter where it is in the page.

    
    

    As long as you can access the HTML some where and your editor doesn't filter out tags you should be fine. If your editor has a separate area for JavaScript code then just enter setInterval line. :)

提交回复
热议问题