I have an iFrame with a feedback form in it. After the user clicks submit, I want use parent window to scroll to the top. I know I can scroll to the top of a page with:
Within the Iframe page.
window.parent.ScrollToTop(); // Scroll to top function
On The parrent page:
window.ScrollToTop = function(){ $('html,body', window.document).animate({ scrollTop: '0px' }, 'fast'); };