title: How to get websites actual HTML code by JS?
body: <p>I have a website with a form. The form is filled by user with data for example i show to user:</p>
  
  <pre><code> &lt;input type='text' value="" name="dsa" /&gt;
  </code></pre>
  
  <p>And he fills it with value of "3";</p>
  
  <p>And he clicks button "save". Now i want to have the whole HTML of the website including values of fields. So i use:</p>
  
  <p>document.documentElement.innerHTML</p>
  
  <p>But i get:</p>
  
  <pre><code> &lt;input type='text' value="" name="dsa" /&gt;
  </code></pre>
  
  <p>But i want to get this:</p>
  
  <pre><code> &lt;input type='text' value="3" name="dsa" /&gt;
  </code></pre>
  
  <p>NOTICE I want to take the whole HTML of the website, not only one field. I dont know what fields will be on the website so i need a general solution.</p>