JavaScript for verify presence of
Windows Media ActiveX
Hi all,
The following
articles are to provide some basics ideas. By using it you can test for the presence of
the Windows Media ActiveX control
with the following JavaScript:
01 var player;
02 var plugin;
03 var hasActiveX=false;
04 try {
05 if
(window.ActiveXObject)
06 {
07 hasActiveX = true;
08 player = new
ActiveXObject ("WMPlayer.OCX.7");
09 }
10 else if
(window.GeckoActiveXObject)
Join the conversation! Your thoughts help the community grow.