I have no idea what its called but I saw this once and now I really need to use it.

there a 2 pages:
Page A contains a form
Page B contains a list of picture names

When you click on a picture name on page B the url for that picture is insterted into the text field on Page A

Anyone know how I do this?