I have a webpage that's open in a chrome browser but the page no longer exists. What javascript should I type in the console to get a copy of the entire page html?
I have a webpage that's open in a chrome browser but the page no longer exists. What javascript should I type in the console to get a copy of the entire page html?
You can use the following JavaScript code in the console to get a copy of the entire page HTML:
1 | copy(document.documentElement.outerHTML); |
Testing if the previous output contains the string outerHTML
: True
I have a webpage that's open in a chrome browser but the page no longer exists. What javascript should I type in the console to get a copy of the entire page html?
I have a webpage that's open in a chrome browser but the page no longer exists. What javascript should I type in the console to get a copy of the entire page html?
You can try using the following JavaScript code in the console to get a copy of the entire page HTML:
1 | copy(document.documentElement.outerHTML); |
Testing if the previous output contains the string outerHTML
: True
I have a webpage that's open in a chrome browser but the page no longer exists. What javascript should I type in the console to get a copy of the entire page html?
I have a webpage that's open in a chrome browser but the page no longer exists. What javascript should I type in the console to get a copy of the entire page html?
You can use the following JavaScript code in the console to get a copy of the entire HTML of the current webpage:
1 | copy(document.documentElement.outerHTML); |
Testing if the previous output contains the string outerHTML
: True
I have a webpage that's open in a chrome browser but the page no longer exists. What javascript should I type in the console to get a copy of the entire page html?
I have a webpage that's open in a chrome browser but the page no longer exists. What javascript should I type in the console to get a copy of the entire page html?
You can use the following JavaScript code to get a copy of the entire page HTML:
1 2 | var pageHtml = document.documentElement.outerHTML; console.log(pageHtml); |
Testing if the previous output contains the string outerHTML
: True
I have a webpage that's open in a chrome browser but the page no longer exists. What javascript should I type in the console to get a copy of the entire page html?
I have a webpage that's open in a chrome browser but the page no longer exists. What javascript should I type in the console to get a copy of the entire page html?
You can use the following JavaScript code to get a copy of the entire page HTML in the console:
1 2 3 4 5 | // Get the entire HTML of the current page var entirePageHTML = document.documentElement.outerHTML; // Log the HTML to the console console.log(entirePageHTML); |
Testing if the previous output contains the string outerHTML
: True