title: window.open on page load
body: <p>I am trying to load a window when the page is loaded. If I try to open the window using a button the code works.</p>
  
  <p>I iam using:</p>
  
  <pre><code>$(document).ready(function() {
  window.open ('http://google.com/', 'newwindow', config='height=720,width=1064, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, directories=no, status=no');
  });
  </code></pre>
  
  <p>However, it is not load the window.</p>
  
  <p>Any suggestion?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
    window.open('http://google.com/', 'newwindow', config = 'height=720,width=1064, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, directories=no, status=no');
    $('.open_webmail').click(function() {
      window.open('http://google.com/', 'newwindow', config = 'height=720,width=1064, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, directories=no, status=no');
    });
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.open_webmail {
    background-color: rgba(0, 124, 255, 0.7);
    color: white;
    font-size: 18px;
    cursor: pointer;
    -webkit-transition: all 550ms ease-in-out;
    transition: all 550ms ease-in-out;
    -moz-transition: all 550ms ease-in-out;
    -o-transition: all 550ms ease-in-out;
    -ms-transition: all 550ms ease-in-out;
    display: inline-block;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 200px;
    height: 100px;
    margin: auto;
  }
  .open_webmail:hover {
    background-color: rgba(163, 0, 255, 0.7);
    color: #c5c5c5;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;button type="button" class="open_webmail"&gt;Login&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>