IE Plugin : Plugin « Document « JavaScript Tutorial






<html>
<head>
<script language="Javascript" type = "text/javascript">
<!--
if ((navigator.userAgent.indexOf('MSIE') != -1) &&
 (navigator.userAgent.indexOf('Win') != -1)){
  document.writeln('<script language="VBscript">');
  document.writeln('Function IEPluginDetect(pluginname)');
  document.writeln('  on error resume next');
  document.writeln('     IEPluginDetect = False');
  document.writeln('     IEPluginDetect = IsObject(CreateObject(pluginname))');
  document.writeln('     If (err) then');
  document.writeln('        IEPluginDetect = False');
  document.writeln('     End If');
  document.writeln('End Function');
  document.writeln('</script>');
}
//-->
</script>
</head>
<body>
<script>
<!--
    document.write('<b>Macromedia Flash Plugin: </b>'  + IEPluginDetect('ShockwaveFlash.ShockwaveFlash'));
// -->
</script>
</body>
</html>








14.30.Plugin
14.30.1.Plugin
14.30.2.Plugin.description
14.30.3.Plugin.filename
14.30.4.Plugin.length
14.30.5.Plugin.name
14.30.6.IE Plugin