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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.