Youtube iframe wmode issue

snakeyyy picture snakeyyy · Oct 29, 2010 · Viewed 134.1k times · Source

Using javascript with jQuery, I am adding an iframe with a youtube url to display a video on a website however the embed code that gets loaded in the iframe from youtube doesnt have wmode="Opaque", therefore the modal boxes on the page are shown beneath the youtube video.

Any ideas how to solve the issue?

Answer

Shabith picture Shabith · Nov 18, 2010

Try adding ?wmode=opaque to the URL or &wmode=opaque if there already is a parameter.

If it doesn't work try this instead, &wmode=transparent which will work in IE browser as well.