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