Script:
<script type="text/javascript">
var startTime = new Date().getTime();
setTimeout(myCallback, 80000); //80000 milliseconds
function myCallback(event) {
var endTime = new Date().getTime();
var timeSpent = endTime - startTime;
/*
Your Function
*/
}
</script>
<script type="text/javascript">
var startTime = new Date().getTime();
setTimeout(myCallback, 80000); //80000 milliseconds
function myCallback(event) {
var endTime = new Date().getTime();
var timeSpent = endTime - startTime;
/*
Your Function
*/
}
</script>
No comments:
Post a Comment