title: Value from a popup window in a parent element
body: <p>I have a document with an element like this:</p>
  
  <pre><code>&lt;input type="text" id="newsPicture" name="newsPicture" /&gt;
  </code></pre>
  
  <p>With jQuery i created a link to show a PopUp window.</p>
  
  <p>In this PopUp i have a list of news pictures like </p>
  
  <pre><code>&lt;a id="newsPictureName" class="newsPicture"&gt;newsPictureName.jpg&lt;/a&gt;
  </code></pre>
  
  <p>Now, i will select one of this pictures with an a-element to close the window</p>
  
  <pre><code>$(function(){
      $('.newsPicture').click(function() {
          window.close();
      });
  });
  </code></pre>
  
  <p>How do i put the name of this newsPicture to the input-field in my parent document?</p>
  
  <p>Any ideas?</p>
  
  <p>Sorry for my bad english…</p>