homepage Welcome to WebmasterWorld Guest from 50.19.206.49
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Google / Google Desktop Tools and Google Labs Projects
Forum Library, Charter, Moderator: open

Google Desktop Tools and Google Labs Projects Forum

    
Detecting the Google Toolbar
Updated code
james007




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

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>

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google Desktop Tools and Google Labs Projects
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved