12345678910111213141516171819202122 |
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>Geolocation demo step 1</title>
- </head>
- <body>
- <h1>Step 1: check availability of the Geolocation API</h1>
- <p>As a first step, let us just check whether the HTML5 Geolocation API is
- present in this browser or not.</p>
- <div id="geo"></div>
- <p><a href="geo2.html">Next</a></p>
- </body>
- <script>
- document.getElementById('geo').innerHTML = navigator.geolocation ?
- 'Geolocation API is available' :
- 'Geolocation API is not available';
- </script>
- </html>
|