Skip to Content
Beginning JavaScript®, Fourth Edition
book

Beginning JavaScript®, Fourth Edition

by Paul Wilton, Jeremy McPeak
October 2009
Beginner
788 pages
18h 51m
English
Wrox
Content preview from Beginning JavaScript®, Fourth Edition

Chapter 13. Using ActiveX and Plug-Ins with JavaScript

Today's browsers provide a lot of built-in functionality; however, there are many things they cannot do unaided, such as playing video or sound. Functionality of this sort is quite common on the Internet, and plug-ins and their ability to extend browser functionality make it possible to enjoy a richer web experience.

Plug-ins are downloaded applications and, as their name suggests, "plugged into" the browser. Many different plug-ins exist today; the more common ones include Adobe Flash Player, Microsoft's Silverlight, and Apple's QuickTime player.

Essentially, plug-ins are objects that encapsulate all the functionality they need to perform their tasks, such as playing audio files, in a way that hides the complexity from the website author. They are usually written in languages such as C++ and Java.

Plug-ins usually, but not always, have some sort of user interface. For example, the QuickTime plug-in has a user interface that displays buttons to play/pause the audio or video file, a seek bar to go to a precise point in the playback, and a volume control (see Figure 13-1.

Figure 13-1

Figure 13.1. Figure 13-1

Some plug-ins make objects with various methods and properties available to you to access with JavaScript, much as you access the methods and properties of the window object or the Document Object Model. For example, the QuickTime player plug-in ...

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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

The Well-Grounded Rubyist, Third Edition

The Well-Grounded Rubyist, Third Edition

David Black, Joe Leo

Publisher Resources

ISBN: 9780470525937Purchase book