I have this javascript script, and I would like to print latitude and longitude obtained through geolocation in the same html page where the script is added.
How can I do that?
Edit : I specified my question
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you are asking how to display latitude and longitude that you already have, rather than actually obtaining latitude and longitude. If this is the case, you can do this:
If this is not the case, you question should probably be “How do I obtain the current latitude and longitude of the website visitor?”.