Is there any way to call a function 10 seconds after the page load in PHP. (Not using HTML.)
Advertisement
Answer
This code works. Edited from randell’s answer.
JavaScript
x
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
setTimeout(function() { $('#some_id').load('index.php'); }, 10000);
});
</script>
Thanks to randell