I have a problem with showing a youtube video through an iframe
.
When I click on the youtube icon, the page is being reloaded OR the page scrolls to the top. The page scroll only when the iframe
is not on top of the page, but for example under a list or after some element.
How do you prevent the page to reload or scroll to the top after clicking on the youtube icon?
If I move the iframe
to the top, the reload and scrolling isn't occurring. When the iframe
isn't on top of the page, the page reloads or scrolls to the top.