You may grab the innerHTML
of the page and then process it on the server:
document.getElementsByTagName('html')[0].innerHTML;
// this would also be interactive (i.e. if you've
// modified the DOM, that would be included)
More Related Contents:
- How to screenshot website in JavaScript client-side / how Google did it? (no need to access HDD) [duplicate]
- Jquery Change Height based on Browser Size/Resize
- jQuery Screen Resolution Height Adjustment
- Disable zooming of the page in desktop web browsers using Javascript/Jquery [duplicate]
- Change Height based on Browser Size/Resize
- How to make browser full screen using F11 key event through JavaScript [duplicate]
- Simple Javascript validation function [closed]
- I want to change texts which have same color without use any class/id etc. via JS [closed]
- Facebook JS SDK’s FB.api(‘/me’) method doesn’t return the fields I expect in Graph API v2.4+
- Take a screenshot of a webpage with JavaScript?
- What does ‘:’ (colon) do in JavaScript?
- How do I correctly detect orientation change using Phonegap on iOS?
- Prevent Page Load on Jquery Form Submit with None Display Button
- Resolving require paths with webpack
- How to add/subtract dates with JavaScript?
- Benefits of loading JS at the bottom as opposed to the top of the document
- Restricting character length in a regular expression
- How to check if an object is a Promise?
- JS – get image width and height from the base64 code
- jQuery – How to select by attribute
- Matching accented characters with Javascript regexes
- Best way to convert string to array of object in javascript?
- What does “./bin/www” do in Express 4.x?
- Override a setter, and the getter must also be overridden
- How to keep the browser history in sync when using Ajax?
- How to parse CSV data?
- How to pass a list from Python, by Jinja2 to JavaScript
- When loading an html page via ajax, will script tags be loaded?
- Angular 4 – What is the right way to “wait for operation”?
- How do I get the position of an element after css3 translation in JavaScript?