Forum Moderators: open

Message Too Old, No Replies

Macromedia Check

can JavaScript check if it is installed?

         

WhosAWhata

2:05 am on Oct 28, 2004 (gmt 0)

10+ Year Member



I know that JavaScript can do redirects based on browsers and such, but can JavaScript or any other language for that matter do a redirect based on whether the client has Macromedia Flash installed?

i want to make it so that if they have flash, it will be directed to a flash page, if they don't have flash, i'm going to redirect to a page with a link to download flash or a link to view the text/html version

BlobFisk

10:38 am on Oct 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Flash as in the application that allows you to create Flash/Shockwave movies or just the player?

If you are looking for the former, then no - Javascript cannot do this. It would mean that JS has access to your registry and could peek there - which would be a huge security hole.

If it is the latter, then yes - Javascript can do this! Since the players are stored in the browsers plugin list then you can access and check for this. There are many tutorials out there on Flash sniffing.

HTH