title: Set iFrame source to "view-source: {URL}" not working
body: <p>I'm trying to set the src of an iframe to "view-source: {URL}" using the following:</p>
  
  <pre><code>var url = document.getElementById('url');
  var submit = document.getElementById('submit');
  var target = document.getElementById('target');
  submit.onclick = function(){
      window.frames['target'].location.href = "view-source:" + url.value; 
  };
  </code></pre>
  
  <p>But it seems to set the src of the iframe relative to my website where the iframe is. I suppose because "view-source: x" only works when implemented with "location.href"?</p>
  
  <p>Is this the case?</p>
  
  <p>I'm using JS by the way!</p>
  
  <p>Html:</p>
  
  <pre><code>&lt;input type="text" id="url"&gt;&lt;/input&gt;
  &lt;button id="submit"&gt;Submit&lt;/button&gt;
  
  &lt;iframe id="target" src=""&gt;&lt;/iframe&gt;
  </code></pre>