Does anyone know how to get the page source of a page as a string without using XMLHttpRequest?
The closest I have got is "pageSource = window.document.documentElement.innerHTML;"
But that is not identical to the original source.
XMLHttpRequest works, but it is a bit slow. I was hoping to be able to read from the in memory cache. Opening a new tab with "view-source:url" is quick, I would like to get that speed.
I've also tried a hidden IFRAME with src "view-source:url", but that just says "Failed to load resource". I can't find any way of creating an invisible chrome window or tab to try extracting from it.
Here is one page of stuff I was trying:
http://stackoverflow.com/questions/2...ge-source-code


LinkBack URL
About LinkBacks




Reply With Quote