Thursday, September 20, 2012

Saving content of a dynamically created Page



You can use this to get most of the HTML for the page:
var htmlSource = document.getElementsByTagName('html')[0].innerHTML;

However it'll lack the opening and closing HTML tags and doctype, which probably won't matter to you as you could recreate that very easily back on the server.

..I would add later complete code on how to save page completely soon using the hint above..

Devops links

  Build Versioning in Azure DevOps Pipelines