Uncaught TypeError: Property 'open' of object [object DOMWindow] is not a function
<p>This is my code:</p>

<pre><code>function loadOffer(id) {
    window.open("http://www.google.com.com","mywindow");
}
</code></pre>

<p>It's initiated onClick. However I get the following error:</p>

<blockquote>
  <p>Uncaught TypeError: Property 'open' of object [object DOMWindow] is not a function</p>
</blockquote>

<p>Any ideas?</p>
