0

enter image description here

I'm using javascript for my codes: I have this sample screenshot of my website, my problem is I don't know how to get the value (coordinates) of the text box and put it in the URL. I tried this code ' window. location = window.location + '?loc=' + document.getElementById("latlng").value; " and its adding the value in the URL but it keeps on refreshing/loading my page, what seems to be the problem? please help me. than you!

4

1 回答 1

0

设置window.location将强制页面重新加载。

要在不重新加载整页的情况下更改地图上的图钉位置,您需要使用Google Maps API

于 2013-01-24T16:19:27.020 回答