$(document).ready(function() { $('a[href=#container]').click(function(){ $('html, body').animate({scrollTop:0}, 'slow'); return false; }); }); 

