title: Bookmarklet to open a new window forwards current window to [Object Window]?
body: <p>I am using a small bookmarklet which opens a webpage in a new window. It works properly on chrome. </p>
  
  <p>However, when I use the same in Firefox it opens a new window with new web page but the page on which this bookmarklet was clicked is forwarded to some page with text <code>[object Window]</code>. How do I solve this issue?</p>
  
  <p>My code:</p>
  
  <pre><code>&lt;a href="javascript:open('http://www.google.com','targetname','height=500,width=500');"&gt;Bookmarklet&lt;/a&gt;
  </code></pre>
  
  <p>Please let me know how to solve this issue.</p>
  
  <p>Thanks</p>