title: Copy a javascript URL 'as-is' from a link in a web page?:
body: <p>I want to copy a javascript URL-char for char. How, for example, would I  successfully copy the javascript from the 'View Source' link on this page:</p>
  
  <p><a href="http://javascript.about.com/library/blsource.htm" rel="nofollow noreferrer">http://javascript.about.com/library/blsource.htm</a></p>
  
  <p>doing something like(?):</p>
  
  <pre><code>(function(){
      var w=open('','');
      with(w.document) { 
          write(encodeBlahComponent(document.activeElement.href).replace(/blah/g,'asii equivalent').replace(/blah/g,'unicode equivalent').replace(/blah/g,'entity equivalent'));
          close();
      }
  })()
  </code></pre>
  
  <p>What encoding should I use and how to script it properly?</p>