scrollIntoView() scrolls the parent document
I have an iframe inside a document and when i execute scrollIntoView in the iframe it scrolls the parent document as well how can i prevent that from happing.
#javascript #front-end
3 Replies
without you sharing your code, it's hard to say what's wrong
Stack Overflow
scrollIntoView to apply to IFRAME only
I have an element inside of a page with scollbars, which is brought into view on page load via JS call to element.scrollIntoView() - and this works fine, as expected.
Now, if I place this page in...
Is there a solution using only css