title: Open page in another window (abrir pagina en otra ventana) with jQuery
body: <p>The code below opens <code>pagina.php</code> in the same page, but I want to open it in another window.</p>
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type=&quot;text/javascript&quot; src=&quot;jquery-1.10.0.min.js&quot;&gt;&lt;/script&gt;
  &lt;script language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot;&gt;
     $(document).ready(function(){
          $(&quot;#select1&quot;).change(function(event){
              var id = $(&quot;#select1&quot;).find(':selected').val();
             $(location).attr('href','pagina.php?id='+id);         
          });
      });
  &lt;/script&gt;
  &lt;/head&gt;
   &lt;body&gt;
        &lt;select name=&quot;select1&quot; id=&quot;selec#1&quot;&gt; 
          &lt;option value='1'&gt;opcion una &lt;/option&gt;
       &lt;/select&gt;
   &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>