I'm currently using var bodyHTML = document.body.innerHTML; to get the HTML of the body of the webpage. If I edit or modify some information in the HTML in the "Inspect Element" panel on Chrome, I would like to make copies of this HTML. Furthermore, this question really extends to HTML/CSS/JS. I want to gain this data through code, not through right clicks and copying the data, as I want to eventually make new files based on this modified HTML/CSS/JS.
Is it possible to gain access to this browser-modified HTML/CSS/JS?