webapprt/test/chrome/geolocation-prompt-noperm.html

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:488b348ae630
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 </head>
6 <body>
7 <script>
8 window.onload = function() {
9 function failureCallback() {
10 document.getElementById("msg").textContent = "Failure.";
11 }
12
13 function successCallback() {
14 document.getElementById("msg").textContent = "Success.";
15 }
16
17 navigator.geolocation.getCurrentPosition(successCallback, failureCallback);
18 };
19 </script>
20 <p id="msg">Webapp waiting for geolocation...</p>
21 </body>
22 </html>

mercurial