HTML Creater

HTML Creater

Share

23/06/2015

The getCurrentPosition() Method - Return Data

The getCurrentPosition() method returns an object if it is successful. The latitude, longitude and accuracy properties are always returned. The other properties below are returned if available.

Property Description
coords.latitude The latitude as a decimal number
coords.longitude The longitude as a decimal number
coords.accuracy The accuracy of position
coords.altitude The altitude in meters above the mean sea level
coords.altitudeAccuracy The altitude accuracy of position
coords.heading The heading as degrees clockwise from North
coords.speed The speed in meters per second
timestamp The date/time of the response

23/06/2015

Using HTML Geolocation

Use the getCurrentPosition() method to get the user's position.

The example below is a simple Geolocation example returning the latitude and longitude of the user's position:


var x = document.getElementById("demo");
function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {
x.innerHTML = "Geolocation is not supported by this browser.";
}
}
function showPosition(position) {
x.innerHTML = "Latitude: " + position.coords.latitude +
"Longitude: " + position.coords.longitude;
}

28/03/2015

HTML Input AttriThe value Attribute

The value attribute specifies the initial value for an input field:

Example


First name:


Last name:

butes

Want your business to be the top-listed Advertising & Marketing Company in Surat?
Click here to claim your Sponsored Listing.

Category

Telephone

Address


Surat
395009

Opening Hours

Monday 10am - 7pm
Tuesday 10am - 7pm
Wednesday 10am - 7pm
Thursday 10am - 7pm
Friday 10am - 7pm
Saturday 10am - 7pm