By click on map coords to textbox

Hi everybody.

Completely new here :slight_smile:

I have got a short question, was looking by google and forum but didnt find what i need.

I just need a lil script or something like that, which makes me able to put the clicked coordinate into a textfield.

Does somebody know a solution or maybe some code examples?

Best wishes from germany,

Boris

This OpenLayers example writes the coordinates into an alert. Shouldn’t be a problem to write it to a textbox instead.
http://openlayers.org/dev/examples/click.html