title: Passing a value from child window to text field in parent window
body: <p>I'm trying to pass and insert value from child window to the <strong>value attribute</strong> of text field which located in parent window, and not to its <strong>property</strong>. I've tried all the following but no luck so far:</p>
  
  <p>Child window:</p>
  
  <pre><code>function getFile(oImg){
  var id = &lt;?php echo $id; ?&gt;;
  var editPage = window.opener.document;
  oSrc = oImg.src;
  lastSlash = oSrc.lastIndexOf('/');
  oName = oSrc.substr(lastSlash+1);
  var logo = 'logo'+id, logoHolder = 'logoHolder'+id;
  //window.opener.document.getElementById(logo).value = oName;
  //window.opener.document.getElementById(logo).setAttribute("value", oName);
  //window.opener.document.getElementById(logo).innerHTML = oName;
  //window.opener.document.getElementById(logo).setValue = oName;
  window.opener.document.getElementById(logoHolder).src = "templates/img/user/" + oName;
  this.close()
  }
  </code></pre>
  
  <p>Parent page:</p>
  
  <p><code>&lt;input type="text" id="logo1" name="logo1" value="VALUE-SHOULD-BE-INSERTED-HERE" /&gt;</code></p>
  
  <p>The first one just display the value in the text-field but when I'm trying to save it with jquery, the value is actually empty. Any idea?</p>