geolocation.html (310B)
1 <html> 2 <head> 3 <title>Simple access of geolocation</title> 4 <head> 5 <script> 6 function loadedWindow() { 7 opener.postMessage("loaded", "*"); 8 } 9 navigator.geolocation.getCurrentPosition(loadedWindow, loadedWindow, {timeout:30000}); 10 </script> 11 </head> 12 <body></body> 13 </html>