Skip to content

Module: Get Page HTML

Jess Williams edited this page Dec 31, 2019 · 2 revisions

Summary

  • Objective: This module will retrieve the HTML from the current page.
  • Date: ???
  • Authors: bcoles
  • Browsers: All
  • Code

Internal Working

This module returns the HTML of the header and body of the hooked web page :

try {
	var html_head = document.head.innerHTML.toString();
} catch (e) {
	var html_head = "Error: document has no head";
}
try {
	var html_body = document.body.innerHTML.toString();
} catch (e) {
	var html_body = "Error: document has no body";
}

Feedback

Clone this wiki locally