Jan-08-2021, 01:51 PM
As in the title I want a script to get called periodically
I have this script at the bottom of an html file
<script>
setInterval("ajaxd()",1000);
function ajaxd() {
$(document).ready(function(){alert("ready");})
}
</script>
but the alert is not called
Is the syntax correct?
I have this script at the bottom of an html file
<script>
setInterval("ajaxd()",1000);
function ajaxd() {
$(document).ready(function(){alert("ready");})
}
</script>
but the alert is not called
Is the syntax correct?