Tech Mahindra Interview Question

how to get the current position on user using HTML5?