Welcome to WebmasterWorld Guest from 54.147.237.64

Forum Moderators: open

Message Too Old, No Replies

Detecting the Google Toolbar

Updated code

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

Junior Member from AU 

10+ Year Member Top Contributors Of The Month

joined:June 28, 2003
posts:144
votes: 15


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>
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members