function main() {
var text = $('body').text();
alert(text);
}
setTimeout(function(){main();}, 2000);
I want everything in the body alerted after 2 seconds, but I can't seem to get it to work, I'd appreciate if somebody could help, thanks!
function main() {
var text = $('body').text();
alert(text);
}
setTimeout(function(){main();}, 2000);
I want everything in the body alerted after 2 seconds, but I can't seem to get it to work, I'd appreciate if somebody could help, thanks!