Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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>
share|improve this question

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>​
share|improve this answer
Did this work for you? – Anagio Mar 11 '12 at 8:47

Try to change your code with this one:

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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