For some reason YouTube videos in my website do not get the fullscreen button, even if I added the parameter allowFullScreen set to true both in the object and embed tag.

Here's an example page: http://www.indievault.it/2011/11/09/indie-vault-alla-games-week-2011-online-la-video-gallery/

Just take a quick look at the source. The allowFullScreen param is there, but the button won't show. Here's an excerpt from the code in that page:

<object width="540" height="325"><param name="movie" value="http://www.youtube.com/v/dvYQhJwwkgA"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/dvYQhJwwkgA" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="540" height="325"></embed </object>

2 Answers 2


This works for me

<object width="540" height="325"><param name="movie" value="http://www.youtube.com/v/dvYQhJwwkgA?version=3&amp;hl=en_US&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/dvYQhJwwkgA?version=3&amp;hl=en_US&amp;rel=0" type="application/x-shockwave-flash" width="540" height="325" allowscriptaccess="always" allowfullscreen="true"></embed></object>​
  • Did this work for you?
    – Anagio
    Mar 11, 2012 at 8:47

Try to change your code with this one:

<iframe title="YouTube video player" 
              width="540" height="325" 
              frameborder="0" allowfullscreen>
  • Tried it, but still no fullscreen button... any other idea?
    – ySgPjx
    Nov 12, 2011 at 11:39
  • Plus it does not work on iOS.
    – ySgPjx
    Nov 12, 2011 at 12:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.