I know that I can use document.documentElement.outerHTML
to put the current page into a string, but I need to get other pages on the same website into a string from a certain, different page. The pages are php files, and my function is running from the parent index.php.
The ultimate goal for this is a site-wide search function.