Accessibility
 
Home > Products > Dreamweaver > Support > Editing HTML in Dreamweaver
Dreamweaver Icon Macromedia Dreamweaver Support Center - Editing HTML in Dreamweaver
Getting even more information about the browser

You can use the methods shown in the code for this technique to get more information about the plugins and MIME types supported by your browser (if it's Netscape 3.0 or later), as well as whether Java and data-tainting are enabled. For example, the following script cycles through the plugins[] array and prints out the name, description (if there is one) and filename of each installed plugin.

<SCRIPT LANGUAGE="JavaScript">
for (i=0; i < navigator.plugins.length; i++){
document.write('<B>' + navigator.plugins[i].name + '</B><BR>');
if (navigator.plugins[i].description){
document.write(navigator.plugins[i].description + '<BR>');
}
else{
document.write('<CODE>[no description]</CODE><BR>');
}
document.write(navigator.plugins[i].filename + '<P>');
}
</SCRIPT>
Be sure to read the commented code for a line-by-line explanation of the JavaScript syntax used in these examples and its English translation. See JavaScript: The Definitive Guide, 2nd Edition, by David Flanagan for more information about writing JavaScript.

To Table of Contents Back to Previous document