I want to be able to imitate a Windows pop up window, so the person completing
a form can click on a map to get the value. How do I get the value into the form?
There are two parts to this example. The first is the source code for your form
and the second is the HTML code that makes up our map lookup page.
Here is our form:
Try clicking on the "Show Map" button to see what happens. Then click on the number you
want and see what happens to the form's input field.
source code
In this example, you will see that I have forms[0] set. In fact there is a form
used for the navigation bar at the top of the page, so in the actual source code it
is set to forms[1].
You can have as many of these pop-ups as you want on a form, just change the
document.forms[0].maparea to be document.forms[0].fieldname.