3

Is there a web-part, or some way of forcing a page to auto-reload/refresh, at a given interval - say every 5mins?

Thanks

5
  • 1
    why do you want to do that?
    – Arvi
    Mar 28, 2019 at 1:37
  • 1
    Most people have their PCs on our intranet page open. They forget to CTRL-F5 their browsers. We put up news items that simply don't get displayed in real-time
    – Fandango68
    Mar 28, 2019 at 2:33
  • 1
    We have the same issue. I just asked the question yesterday. sharepoint.stackexchange.com/questions/260036/…
    – Stevan
    Mar 28, 2019 at 7:00
  • 1
    Are you looking for an answer for SP 2016 (On-Premises) or SP Online? Mar 28, 2019 at 10:15
  • 1
    @SlavenSemper online mate
    – Fandango68
    Mar 29, 2019 at 0:51

1 Answer 1

2

There is no readymade webpart for this, however, an easy way out would be to add a script editor web part and add a reload script

<script>
window.addEventListener("onload",reloadInFive);

function reloadInFive(){
 setTimeout(function(){
   window.location.reload();
 },30000);
}
<script>

Once you test it, you could publish this webparts dwp file in the web parts gallery

2
  • How much time does 30000 means?
    – OM-ॐ
    Mar 11, 2020 at 5:01
  • 1
    It's in milliseconds. So it's 5 seconds Mar 12, 2020 at 10:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.