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> Quote Link to comment 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**'; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.