title: How to download entire HTML of a webpage using javascript?
body: <p>Is it possible to download the entire <code>HTML</code> of a webpage using <code>JavaScript</code> given the URL? What I want to do is to develop a Firefox add-on to download the content of all the links found in the source of current page of browser.</p>
  
  <p><strong>update</strong>: the URLs reside in the same domain</p>