jQuery(document).ready(function($){ $('#img-back').on('click', function(e){ e.preventDefault(); window.history.back(); }); });