JavaScript: How to alert variable on window.opener
<p><strong>Opened Window:</strong></p>

<pre><code> window.opener.variable = document.getElementById(target).value; //string
 window.opener.focus();
</code></pre>

<p><strong>Window Opener</strong></p>

<pre><code>alert(variable);
</code></pre>

<p>Could this be done? The above example doesn't work.</p>
