Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Plugin Query


Message #1 by "Harjit Singh Grewal" <hsgrewal@g...> on Sat, 28 Jul 2001 09:48:40 +0530
What browser are you using, IE doesn't support the plugins collection in the
same way as NN. It just gets all the objects that are EMBEDded in the page.

Joe

----- Original Message -----
From: "Harjit Singh Grewal" <hsgrewal@g...>
To: "javascript" <javascript@p...>
Sent: Saturday, July 28, 2001 5:18 AM
Subject: [javascript] Plugin Query


Hello Everybody,
I am struck with a very basic problem, I have a web page where I want to
display some flash animation but want to check first whether the browser has
enabled the viewing of flash movies or not and for that I'm trying to use a
simple line of code
"if (navigator.plugins["Flash"])
    document.writeln("Supports Flash")
else
    document.writeln("Doesn't support Flash")
 , but this is not giving me the desired results. As I can view flash movies
in my browser but by using the above if statement it gives me message that
my browser doesn't support Flash.
Please help me, your help will be highly appreciated.
Thanks
Harjit






  Return to Index