How To Check For Presence Of The Google Earth Plugin Using Javascript?
How can I determine whether the Google Earth Plugin is installed in the browser using JavaScript?
Solution 1:
You can use the isInstalled
method:
google.load("earth", "1");
if(google.earth.isInstalled()) {
//Installed!
}
However, note that if the plugin is not installed, the user will be automatically prompted to download it. So this is only really of use if you want to only display certain content to users who already have the plugin.
Post a Comment for "How To Check For Presence Of The Google Earth Plugin Using Javascript?"