O'Reilly logo

Platinum Edition Using XHTML™, XML, and Java™ 2 by Andrew H. Watt, Mike Morgan, Jim O'Donnell, Eric Ladd

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required