Ok, hab es selber hinbekommen :-)
function getGPS() {
function handler(location){
var message = document.getElementById("location");
message.innerHTML += "<p>Longitude: " + location.coords.longitude + "</p>";
message.innerHTML += "<p>Latitude: " + location.coords.latitude + "</p>";
message.innerHTML += "<p>Accuracy: " + location.coords.accuracy + "</p>";
}
navigator.geolocation.getCurrentPosition(handler);
}
LG it-girl