I have an iframe embedded in a page. They are both on different domains but I have access to both.
I want to scroll to the top of the parent window when a link is clicked in the iframe. Somthing like this:
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');
};
Is this even possible?