JavaScript and Plug-Ins

JavaScript can be used with the client to determine what plug-ins the client has installed and what MIME types are supported. This is done through the navigator object, through two of its properties: plugins and mimeTypes. JavaScripts can also be used to call plug-in functions.

Note

Internet Explorer also supports the navigator object, so the techniques in this section should work for both Netscape Navigator and Microsoft Internet Explorer. Be aware, however, that Internet Explorer does not support all Navigator plug-ins.

By determining at the client whether a particular plug-in is installed or MIME-type supported, you can write scripts that generate content dynamically. If a particular plug-in is installed, the appropriate ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.