Answers for "how to fetch web page source code with javascript"

0

how to fetch web page source code with javascript

var myLoc = window.prompt('Please enter a web site address', 'http://');
getHttp =   myLoc.substring(0, 7);
 
if ( getHttp == "http://")
{
finalUrl = myLoc;
} else {
finalUrl = 'http://' + myLoc;
}
 
window.location = 'view-source:' + finalUrl;
Posted by: Guest on December-14-2020

Code answers related to "how to fetch web page source code with javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language