im looking for some javascript to identify chrome...or anything actually?

nicholas j

New member
i browsed the adobe site about flash, and they seem to have an identifier for chrome... my best guess would be the javascript at the bottom of this question. but im really only looking for something to identify chrome so i can use it to hide some elements on my page. anyway the page w/ the code:
http://get.adobe.com/flashplayer/

and the code out of centext:
<script type="text/javascript">
var found = false;
var googleType = "Chrome";
var f = "";

if (googleType == "Chrome") {
for (var i = 0; i < navigator.plugins.length; i++) {
f = navigator.plugins.filename;
if (f == "gcswf32.dll" || f == "Flash Player Plugin for Chrome.plugin" || f == "libgcflashplayer.so") {
found = true;
}
}

if (!found)window.location.href = "/flashplayer/?no_redirect";
}

</script>
 
Back
Top