chiprivers Posted March 31, 2007 Share Posted March 31, 2007 I have a link in a form that opens a new window holding a list of names, I would like to be able to click on one of the names in the new window and it be entered into the form field of the original window. I have toyed around with some java script but I can not get it to work, can anyone help? I was expecting something like this in the new window link: < a href="#" onClick="parent.document.form_name.form_field.value = "value"; return false">Value</a> Link to comment https://forums.phpfreaks.com/topic/45055-entering-form-field-value-in-parent-window/ Share on other sites More sharing options...
mainewoods Posted April 1, 2007 Share Posted April 1, 2007 use this syntax from the opened window: window.opener.document.formname.fieldname.value = '**your value**'; Link to comment https://forums.phpfreaks.com/topic/45055-entering-form-field-value-in-parent-window/#findComment-219463 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.