title: Open new window from link with JQuery
body: <p>I've found some ways that should work in this forum, but it won't work for me. 
  I to press on a link and then a new window should open in  a new window.</p>
  
  <p>My HTML-code is:</p>
  
  <pre><code>  &lt;!DOCTYPE html&gt;
    &lt;html lang="sv-se"&gt;
    &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script src="Navigering.js"&gt;&lt;/script&gt;
      &lt;title&gt;Navigering&lt;/title&gt;
  &lt;/head&gt;
  &lt;html&gt;
  &lt;body&gt;
  &lt;h1&gt;Navigering&lt;/h1&gt;
  &lt;a href="https://www.google.se/" alt="google"&gt;Link toGoogle&lt;/a&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>And my JQuery-code:</p>
  
  <pre><code>$(document).ready(function(){
   function myFunction() {
    $("a").attr('target','_blank');
   }
  $(window).load(myFunction);
  }
  </code></pre>