GBrowserIsCompatible

書式

GBrowserIsCompatible()

説明

Google Mapsが利用できるブラウザかどうかを返します。trueであれば利用可能、falseであれば利用できないことになります。

サンプルコード [実行]

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="http://maps.google.com/maps?file=api&v=1&key=ABQIAAAAasAJryKxWJnBFVJa487d9hTHGAxTVT7IRADYa-JdYz7xQ8IQZBSthgDZdggYpQHsmm6WYtHstQFfLA" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
//<![CDATA[
if (GBrowserIsCompatible()) {
document.write("Google Mapsは利用できます");
}else{
document.write("Google Mapsは利用できません");
}
//]]>
</script>
</body>
</html>