javascript - How do I make this code refresh every minute? -
how make code refresh every minute?
<script type="text/javascript"> $j(document).ready(function () { $j('#left-box').load('pages/box.php'); }); </script>
i want refresh every 1 minute i've tried other stuff cant it
use setinterval
follows:
$j(document).ready(function () { setinterval(function () { $j('#left-box').load('pages/box.php') }, 60000); });
Comments
Post a Comment