How to automatically refresh ejs page

ejs, javascript, jquery, refresh

Solution

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.

Problem

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?

Original source

Related problems