0
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!

Shadow The GPT Wizard
  • 66,030
  • 26
  • 140
  • 208
Cian Flint
  • 71
  • 10

0 Answers0