dtrunk dtrunk - 1 year ago 66
Javascript Question

Get the whole document's html with JavaScript/JQuery

I know it's already discussed here, but there were no solution to get the whole document (including doctype).


Answer Source

This will get you all the HTML:


Unfortunately it does not return the doctype. But you can use document.doctype to get it and glue the two together.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download