(function ($) { // back link $('a.back_link').click(function(){ parent.history.back(); return false; }); })(jQuery);