HikksNotAtHome said:
<script type="text/javascript">
var flashEnabled = confirm('Click OK if you have Flash, click Cancel if you do
not have the Flash plugin');
if (flashEnabled)
{alert('Wow, you have Flash!')}
else
{alert('OOOps, No Flash installed')}
</script>
Anything else you try will have flaws. Even the above has flaws. How do you use
javascript to detect flash is javascript is disabled?
I suspect that Flash plugin detection will work more reliably than asking users
whether or not they have Flash installed ("Do I have what installed?") If
Javascript is not available falling back to the plain, non-Flash version is usually
a reasonable alternative.
<script type="text/javascript">
if (goodFlashVersion) {
document.write('<!-- put flash stuff here -->');
}
else {
document.write('<!-- put plain version here -->');
}
</script>
<noscript>
<!-- put plain version here -->
</noscript>