$(function(){ var text = $('h1').text(); for ( i = 1; i <= 4; i++ ) { $('body').prepend('

'+text+'

'); } });