I apologize in advance for the rudimentary question.
I have webpage A that has a link to webpage B. I need to find the link to webpage B (simple enough) and then save the HTML from webpage B in a variable in my javascript script.
To save the HTML from webpage A, I know this is simple:
html_A = document.body.innerHTML;
How to save HTML from webpage B? I believe that I need to use AJAX correctly? Or can I do this using javascript? And if this is the first, let me just assume that the server for webpage B allows this.
Thank you in advance!
source
share