HTML & JavaScript Geo Location test: Difference between revisions
mNo edit summary |
mNo edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''Inspiration:''' | === '''Inspiration:''' === | ||
* https://www.mediawiki.org/wiki/Adding_JavaScript_to_Wiki_Pages | * [https://www.mediawiki.org/wiki/Adding_JavaScript_to_Wiki_Pages Adding JavaScript to Wiki Pages] at mediawiki.org | ||
* [https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API Geolocation API] at developer.mozilla.org | |||
< | <html> | ||
<p>Click the button to get your coordinates.</p> | |||
<button onclick="getLocation()">Try It</button> | |||
<p id="ShowLatLonHere"></p> | |||
</html> | |||
</ | |||
</ |
Latest revision as of 15:51, 4 August 2022
Inspiration:
- Adding JavaScript to Wiki Pages at mediawiki.org
- Geolocation API at developer.mozilla.org
Click the button to get your coordinates.