August 1999
Intermediate to advanced
1488 pages
72h 53m
English
Core client-side JavaScript object.
The Embed object references any object that is embedded within a Web page using the HTML <embed> tag. It is inherited from the document object. Embed is typically used for audio and video files, but can be used for any type of embedded file. Embedded objects are referenced by either the embeds array or by name.
Listing 7.201 shows an example of how an embedded midi file can be referenced using the embeds array.
When this HTML code is loaded in a browser, the AUTOSTART option for the <embed> tag will start playing the midi file automatically. The stopsong() function calls the stop method, which is part of browser audio ...
Read now
Unlock full access