INFO: The Plugins Property Is Not Supported in Internet Explorer (232702)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 4.0
  • Microsoft Internet Explorer (Programming) 4.01
  • Microsoft Internet Explorer (Programming) 4.01 SP1
  • Microsoft Internet Explorer (Programming) 4.01 SP2
  • Microsoft Internet Explorer (Programming) 5
  • Microsoft Internet Explorer (Programming) 5.5

This article was previously published under Q232702

SUMMARY

Microsoft Internet Explorer does not support the Plugins property for the Navigator object. The Navigator object is used to retrieve information about the capabilities of the current browser in use. The Plugins property is an alias for the collection of all the embedded objects in the Web page.

MORE INFORMATION

To determine if a plugin has been installed, use the FileSystemObject object to verify the plugin .dll file in one of the following directories:

C:\Program Files\Internet Explorer\PLUGINS\

-or-

C:\Program Files\Plus!\Internet Explorer\PLUGINS\

For an example, see the following sample code:

<HTML>
<HEAD>
<SCRIPT language="VBScript">
Dim fso, returnDir

Sub checkfile()
   Set fso = CreateObject("Scripting.FileSystemObject")
   returnDir = fso.FileExists("C:\Program Files\Plus!\Internet Explorer\PLUGINS\myplugin.dll")
   If returnDir = True Then
      MsgBox "myplugin.dll is in C:\Program Files\Plus!\Internet Explorer\PLUGINS"
   End If         
   Set returnDir = Nothing
End Sub

Sub window_unload(file)
   Set fso = Nothing
End Sub
</SCRIPT>
</HEAD>

<BODY>
<INPUT type=button value="click me" onclick="checkfile()">
</BODY>
</HTML>
				

NOTE: The CreateObject() function is used with Low security only.

REFERENCES

For more information, see the following Microsoft Web sites:

MSDS Online, Navigator Object
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/obj_navigator.asp

MSDN Online, Plugins Collection
http://msdn.microsoft.com/workshop/author/dhtml/reference/collections/plugins_0.asp

Windows Script Technologies, FileSystemObject Tutorial
http://msdn.microsoft.com/scripting/vbscript/doc/vbsfsotutor.htm


For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

195826 PRB: CreateObject Fails from Client-Side Scripts


Modification Type:MinorLast Reviewed:2/18/2004
Keywords:kbinfo KB232702