I am not sure if its the right thread, or how the title explains the issue...

But, can I include in a webpage the stuff needed to get a GPS location from the phone and send to server? Or do I need to develop a widget