master
parent
447ffdd187
commit
9927f99745
@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>geolocation</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
|
||||
navigator.geolocation.getCurrentPosition(function (position) {
|
||||
document.write(position.coords.latitude + ", " + position.coords.longitude);
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
Reference in New Issue