title: Pop up window by using shortcut key
body: <p>I wrote a code for a shortcut key. It works, but I want to open a URL in the popup window with Javascript. When I write scripts for popup it doesn't work.</p>
  
  <p>My code is:</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type = "text/javascript"&gt;
    $(document).keyup(function (e) {
      var keyCode = e.keyCode ? e.keyCode : e.which
        if (keyCode == 17&amp;&amp;81) {
          window.open("urltest.html");
        }
      });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;form id="form1" runat="server"&gt;
      Press ctrl+q to open page.
    &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And when I use this:</p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript"&gt;
    function popitup(url) {
      newwindow=window.open(url,'name','height=200,width=150');
      if (window.focus) {newwindow.focus()}
      return false;
    }
  &lt;/script&gt;
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>&lt;a href="urltest.html" onclick="return popitup('urltest.html')"&gt;Link to popup&lt;/a&gt;
  </code></pre>
  
  <p>It doesn't work. What should I do?</p>
  
  <p>Thanks.</p>