Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
99
rated 0 times [  103] [ 4]  / answers: 1 / hits: 27477  / 12 Years ago, fri, april 13, 2012, 12:00:00

I would like to be able to save the state of the html page after I've interacted with it.



Say I click a checkbox, or the javascript set the values of various elements.



How can I save the javascript-rendered page?



Thanks.


More From » html

 Answers
88

That should do and will grab the ALL page not just the body



console.log(document.getElementsByTagName('html')[0].innerHTML);

[#86252] Thursday, April 12, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
zaynerogerb

Total Points: 454
Total Questions: 109
Total Answers: 97

Location: Comoros
Member since Tue, Mar 14, 2023
1 Year ago
;