Questions tagged [w3c-geolocation]

The W3C Geolocation API provides scripted access to geographical location information associated with a hosting device.

See also:

123 questions
-1
votes
1 answer

Assign the latitude and longitude from Geolocation's getCurrentPosition to variables

I am trying to set the longitude and latitude of this function found on W3Schools to a variable (let's just say y and z), then I need to display y: