title: Getting the current domain name in Chrome when the page fails to load
body: <p>If you try to load with Chrome: <a href="http://sdqdsqdqsdsqdsqd.com/" rel="noreferrer">http://sdqdsqdqsdsqdsqd.com/</a></p>
  
  <p>You'll obtain:</p>
  
  <pre><code>ERR_NAME_NOT_RESOLVED
  </code></pre>
  
  <p>I would like, with a bookmarklet, to be able to get the current domain name and redirect it to a whois page in order to check if the domain is available.</p>
  
  <p>I tried in the console:</p>
  
  <pre><code>window.location.href
  </code></pre>
  
  <p>but it outputs:</p>
  
  <pre><code>"data:text/html,chromewebdata"
  </code></pre>
  
  <p>Is there any way to retrieve the failed URL?</p>