XMLSerializer.serializeToString()
can be used to convert DOM nodes to string.
var s = new XMLSerializer();
var d = document;
var str = s.serializeToString(d);
alert(str);
More Related Contents:
- how to resize responsive image up and down
- How to add number of days to today’s date? [duplicate]
- Get the real width and height of an image with JavaScript? (in Safari/Chrome)
- JQuery .each() backwards
- How to simulate a click by using x,y coordinates in JavaScript?
- A CORS POST request works from plain JavaScript, but why not with jQuery?
- Is there an easy way to convert jquery code to javascript? [closed]
- Removing or replacing a stylesheet (a ) with JavaScript/jQuery
- jQuery or javascript to find memory usage of page
- How do you get the cursor position in a textarea?
- Keep Bootstrap Dropdown Open When Clicked Off
- Can jQuery read/write cookies to a browser?
- What does $(selector)[0] mean in jQuery?
- Display a loading bar before the entire page is loaded
- how to block website from loading in iframe?
- How to send variables from one file to another in Javascript? [duplicate]
- jQuery ID starts with
- Implementing jQuery’s “live” binder with native Javascript
- How do I find out how many times a function is called with javascript/jquery?
- Why web browsers don’t have jQuery built in? [duplicate]
- Create array of all integers between two numbers, inclusive, in Javascript/jQuery
- Kendo UI Grid multi level hierarchy (n-levels of hierarchy)
- Upload file to my google drive with Google Apps Script (NO FORM IN GOOGLE)
- Can we use the value of localStorage from other domains?
- how to upload and delete files from dropzone.js
- How do you make images load lazily only when they are in the viewport?
- jQuery DataTables “No Data Available in Table”
- How to send data from HTML form to Google Spreadsheet using JavaScript?
- Blur event stops click event from working?
- Will $(window).resize() fire on orientation change?