geo2.html 448 B

12345678910111213141516
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  4. <title>Geolocation demo step 2</title>
  5. </head>
  6. <body>
  7. <h1>Step 2: request current location</h1>
  8. <p>Since we can check the Geolocation API from <a href="geo1.html">step 1</a>,
  9. let us go one step further and use it to obtain geolocation information.</p>
  10. <div id="geo"></div>
  11. </body>
  12. <script src="geo2.js"></script>
  13. </html>