How can I make a Rich Text Page self-refresh?

  • 0
  • 1
  • Question
  • Updated 5 months ago
  • Answered
I have an html code page that I can apply to a homepage to make it self-refresh. I have tried to enter that code into the html of the Rich text page, but it caused some chaos. Does anyone have a solution for this?
Photo of Kelly

Kelly

  • 1,762 Points 1k badge 2x thumb

Posted 5 months ago

  • 0
  • 1
Photo of Gaurav Sharma

Gaurav Sharma

  • 5,756 Points 5k badge 2x thumb
Hi Kelly,

I have tried to use the code in the Rich Text page and it worked for me.

Here you go.

<script> window.setInterval(function() { window.top.location.reload(true); }, 15000); alert("Hello my friend"); </script> <h1>Please confirm if this page refreshes or not. </h1>

Try this code and let me know if this works for you or not.

Thanks,
Gaurav
Photo of Kelly

Kelly

  • 1,762 Points 1k badge 2x thumb
Thanks, Gaurav... that worked perfectly!
Photo of Gaurav Sharma

Gaurav Sharma

  • 5,756 Points 5k badge 2x thumb
Glad, it worked for you. :)