Forum Moderators: open
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
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