3

Im new with ejs. As I was trying out an app. I want to refresh the page every 5 sec.

I got a code

<script language="javascript" type="text/javascript">
        $(document).ready(function() {
            setInterval("location.reload(true)", 5000);
        });   
</script>

But how to include jquery in ejs? How to embed this code in ejs page?

Okky
  • 10,338
  • 15
  • 75
  • 122

1 Answers1

4

Try this

tags: <meta http-equiv="refresh" content="5">. That simple. The "5" is the number of seconds. If you want to increase the time to say 20 minutes, you simply put in "1200" and so on.

Jetson John
  • 3,759
  • 8
  • 39
  • 53