setting text in forms of other windows

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to set the text in a form (on the original window) by clicking an
image on a new or popup window. For example there is a picture of a dog in a
'pop-up' window. By clicking on the image the word "dog" is placed in a text
field of a form on the original window (and ideally closing the pop-up at the
same time).
Any help would be greatly apprectiated
 
Use javaScript for this.
Something like:

<img src="dog.jpg"
onclick="document.opener.forms[0].fieldname.value='dog'; window.close()>

possibly:
onclick="window.opener.document.forms[0].fieldname.value='dog';
window.close()>

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 
Back
Top