title: Javascript window.open() passing args
body: <p>I am trying to use <code>window.open()</code> to pass along some arguments to another page.</p>
  
  <p>I want the page to be </p>
  
  <pre><code>myPage.html?img=1.jpg
  </code></pre>
  
  <p>Where once on that page I will use javascript to get the arg and show the image.</p>
  
  <p>However I cannot figure out how to do this with window.open() cause it says the pages does not exist which I can understand.</p>
  
  <pre><code> window.open('myPage.html?img=1.jpg','_blank')  
  </code></pre>
  
  <p>Hope this makes sense and I don't even know if it is possible.</p>