jQuery Scroll to bottom of page/iframe
scrollTop() returns the number of pixels that are hidden from view from the scrollable area, so giving it:
$(document).height()
will actually overshoot the bottom of the page. For the scroll to actually 'stop' at the bottom of the page, the current height of the browser window needs subtracting. This will allow the use of easing if required, so it becomes:
$('html, body').animate({ scrollTop: $(document).height()-$(window).height()}, 1400, "easeOutQuint");