$('body').css('background', 'blue'); setInterval(function() { document.write('sub demo 2\n'); }, 500);