Skip to Main Content
JavaScript: The Definitive Guide, Fourth Edition
book

JavaScript: The Definitive Guide, Fourth Edition

by David Flanagan
November 2001
Intermediate to advanced content levelIntermediate to advanced
936 pages
68h 43m
English
O'Reilly Media, Inc.
Content preview from JavaScript: The Definitive Guide, Fourth Edition

Embedded Data

The embeds[] array contains objects that represent data (other than applets) embedded in the document with the <embed> or <object> tag. Embedded data can take many forms (audio, video, spreadsheets, etc.). The browser must have an appropriate viewer installed or available so that it can display the data to the user. In Netscape, special modules known as plugins are responsible for displaying embedded data. In Internet Explorer, embedded data is displayed by ActiveX controls. Both plugins and ActiveX controls can be automatically downloaded from the network and installed as needed.

While the elements of the applets[] array all represent Java applets, the elements of the embeds[] array tend to be more diverse, and few generalizations can be made about them. The properties and methods of these objects depend upon the particular plugin or ActiveX control that is used to display the embedded data. You should consult the vendor-specific documentation for the plugin or ActiveX control you are using. If it supports any kind of scripting from JavaScript, the documentation should say so, and it should describe the properties and methods that you can use from JavaScript. For example, the documentation for the LiveVideo plugin from Netscape says that the LiveVideo object in the embeds[] array supports four methods: play( ), stop( ), rewind( ), and seek( ). With this information, you can write simple scripts that control how the plugin displays a movie you have embedded ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

JavaScript: A Beginner's Guide, Fourth Edition, 4th Edition

JavaScript: A Beginner's Guide, Fourth Edition, 4th Edition

John Pollock
Coding with JavaScript For Dummies

Coding with JavaScript For Dummies

Chris Minnick, Eva Holland

Publisher Resources

ISBN: 0596000480Supplemental ContentCatalog PageErrata