How to get given URL's page source in Javascript.
Suppose i give window.open("https://www.google.co.in"); then it should go to above URL and take page source of google.com which can be save in file. I am using JS in HTML.
How to get given URL's page source in Javascript.
Suppose i give window.open("https://www.google.co.in"); then it should go to above URL and take page source of google.com which can be save in file. I am using JS in HTML.
I you want a cross-domain solution (like your example for google), you can't.