I have a javascript variable with some HTML content.
I want to replace the current html page with this new HTML content.
Example: var html = '<html> <p> new content </p> </html>'
I want to load the content of variable into my HTML.
How would I go about doing so?
1 Answer