How to verify a google maps api key in html javascript?
问题 I have a rather standard Google Maps page, using my own API key. The page only does some marker additions by JS and presenting it in a text-box. If the key is invalid or expired or whatever, the following page is displayed. That is fine, but then I would like to at lest tell the user why it is wrong. The map is accessed by standard: ... <script type="text/javascript" src="http://maps.google.com/maps/api/js?key=API_KEY"></script> </head> <body> <div id="map"></div> <p><input type="text"