SetInterval
<script type="text/javascript" language="javascript">
function getCurrentTime(){
var currentTime = new Date()
return currentTime.toGMTString();
}
</script>
<div id="responseDiv"> </div>
<?php
echo
YsJQuery::newInstance()
->execute(
YsJQuery::html(YsArgument::value('getCurrentTime'))
->in('#responseDiv')
->setInterval(1000, 'myIntervalVarname')
);
?>
<input type="button" value="Kill interval" onclick="clearInterval(myIntervalVarname)" />

Support requests, bug reports, and off-topic comments will be deleted without warning.