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
Jochem
Jochem2y ago
without you sharing your code, it's hard to say what's wrong
Azyrum
Azyrum2y ago
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...
rahul_inc
rahul_inc17mo ago
Is there a solution using only css
Want results from more Discord servers?
Add your server