Welcome to WebmasterWorld Guest from 54.166.46.226

Forum Moderators: open

Message Too Old, No Replies

Detecting the Google Toolbar

Updated code

   
11:21 am on Jul 12, 2004 (gmt 0)

10+ Year Member



I looked in here for a bit of code to detect the Google Toolbar.

This worked fine in MSIE and Opera, but didn't work in Firefox (coming back with a Javascript error) - this is an updated version which does work correctly in Firefox.

Hope someone finds it handy.

<html> 
<head>
<title>Google Toolbar Detection</title>
<object id="detection" classid="clsid:00EF2092-6AC5-47c0-BD25-CF2D5D657FEB"></object>
</head>
<body>
<script language="javascript" type="text/javascript">
if (typeof(detection)!= "undefined") {
if (typeof(detection.Search)!= "undefined") {
document.write("Google Toolbar Installed");
}
else {
document.write("Google Toolbar Not Installed");
}
}
else {
document.write("This is not MSIE");
}
</script>
</body>
</html>