All there is to the EMBED tag.

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

All there is to the EMBED tag.

Post by JellyFish »

Well not all, just the src attribute. What files can it play? Just mp3, avi, etc? Media files? Is there a .js hack where I could use that file type in the embed?

(This is going to sound nuts) Could I write a javascript/html file and save it with the extention of .mp3 and use embed with that file?! (I'll try it)

So you know what I'm trying to get at right? These are my questions.
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Re: All there is to the EMBED tag.

Post by aaronhall »

JellyFish wrote:Well not all, just the src attribute. What files can it play? Just mp3, avi, etc? Media files? Is there a .js hack where I could use that file type in the embed?
The embed tag forwards your file to the appropriate browser plugin (determined by the browser) to 'execute' the file.
(This is going to sound nuts) Could I write a javascript/html file and save it with the extention of .mp3 and use embed with that file?! (I'll try it)
The browser would forward the file to whichever plugin handles '.mp3' files, which would try to blast your javascript through the speakers (or not). Note that EMBED isn't present in any modern html/xhtml standard, though still widely supported.
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

What's XHTML using? <object> ?
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

Right, deprecated in favor of OBJECT
Post Reply