You need to sign in to do that
Don't have an account?
Lis Witalis
Scrolling inside iframe
I have two pages - first one contains iframe component which I'm using to load my second page. I'm using
on my second page but it doesn't work. It works when I'm going directly to my second page (not loaded as a first page's element). How can I fix this?
$('html, body').animate({scrollTop:0}, 'slow');
on my second page but it doesn't work. It works when I'm going directly to my second page (not loaded as a first page's element). How can I fix this?
If the iframe is in the same domain as parent please try the below,either ways it works.
This seems to have done the trick: This seems to do the trick as well:
Please mark this as the solution if it helps.
Best Regards,
Nagendra.P