geo2.html 746 B

12345678910111213141516171819202122232425262728293031
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  4. <title>Geolocation demo step 2</title>
  5. <link rel="stylesheet" href="geo.css" />
  6. </head>
  7. <body>
  8. <h1>Step 2: request current location</h1>
  9. <p>Since we can check the Geolocation API from <a href="geo1.html">step 1</a>,
  10. let us go one step further and use it to obtain geolocation information.</p>
  11. <h2>Results</h2>
  12. <div id="geo"></div>
  13. <h2>Sources</h2>
  14. <p><a href="geo2.js">Script</a></p>
  15. <script src="geo2.js"></script>
  16. <div class="navbar">
  17. <h2>Navigation</h2>
  18. <ul>
  19. <li><a href="geo1">Previous</a></li>
  20. <li><a href="geo3">Next</a></li>
  21. </ul>
  22. </div>
  23. </body>
  24. </html>