Lunar
Lunar

Reputation: 4711

Using object within Internet Explorer 8 (IE8)?

I have a video on a webpage that works in all browsers other than IE8 and IE7. Is this code not supported on those browsers?

<object class="video-frame" data="http://www.youtube.com/videofile" height="215" width="280"></object>

Upvotes: 1

Views: 3203

Answers (2)

leopic
leopic

Reputation: 3002

You can use the new YouTube embedding code

<iframe width="280" height="215" src="http://youtube.com/embed/$videoId" frameborder="0" allowfullscreen></iframe>

That will take care of everything.

Upvotes: 0

Spirit6666
Spirit6666

Reputation: 36

According to w3School, the "object" tag is not yet supported by IE.
http://www.w3schools.com/tags/tag_object.asp

A good alternative for browser who don't support the "object" tag would be the "embed" tag.
"embed" is supported by all major browser.

Upvotes: 2

Related Questions