Sign in
webkit
/
WebKit
/
84774fe198803611f5618b9a9f2415bf7b147653
/
.
/
Tools
/
TestWebKitAPI
/
Tests
/
WebKitCocoa
/
GeolocationGetCurrentPositionResult.html
blob: 4ba3677925b5eb5a8a9cc9cb721bb6afa0a41c9b [
file
] [
log
] [
blame
]
<script>
function
success
(
position
)
{
alert
(
"SUCCESS"
);
}
function
error
(
err
)
{
alert
(
"ERROR:"
+
err
.
code
);
}
navigator
.
geolocation
.
getCurrentPosition
(
success
,
error
);
</script>