title: Redirect outside the current domain using javascript
body: <p>I want to redirect to another website outside of my domain, such as this:</p>
  
  <pre><code>&lt;img src="http://url.to.file.which/not.exist" onerror=window.open("www.google.com","xss",'height=500,width=500');&gt;
  </code></pre>
  
  <p>I put the above code into a simple html file. However, it keeps appending the file path before "www.google.com" when the pop up show up. Is there a way to remove?</p>