Open/Resize window without a link
<p>Guess I am trying to do things that are not usually done in javascript as I am not having much luck googling it.</p>

<p>I have a drop down menu with several choices.</p>

<p>When the user chooses something from the drop down menu it is submitted and the page reloads. I then have an if statement that will do different things depending on what was chosen from the drop down menu.</p>

<p>So if the user chooses PDF from the drop down, I want to be able to load a new window automatically without having to click a link when the script encounters it.</p>

<p>This works, but I want it to do the same thing without the link.</p>

<p>Any help is appreciated.</p>

<pre><code>&lt;a class='link' href="javascript: void(0)" 

onclick="window.open('print-pdf.php?inv=', 'print', 'toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes'); return false;"&gt;Print&lt;/a&gt;
</code></pre>
