Javascript help for target attribute
<p>I have a smaller new window instead of opening a new tab from download a pdf.
I want only callback variable from downlado.jsp i.e. when its working is done on parent window  to close downlado.jsp .from where i have invoked send me function.</p>

<p>JavaScript:</p>

<pre><code>function sendme()
{
    winname = "myNewWin";
    window.open("","myNewWin","width=500,height=300,toolbar=0");
    lsurl  = "downlado.jsp";
    window.document.Form.action = lsurl;
    window.document.Form.target = winName;
    window.document.Form.submit();
    window.setTimeout("window.close",5000);
 }
</code></pre>

<p>For example</p>

<pre><code>function callback()
{
    close download jsp;
}
</code></pre>
