Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have tried using Xmlhttprequest but nothing is working.
I tried getting the Dom object load so dat I can click on it . don't even know if am on the right path

What I have tried:

Xhr=new Xmlhttprequest ();
Xhr.onreadystatechange=function (){ if (Xhr.readystate==4){
if (Xhr.status==200){
Let parser=new Domparser();
Let va=parser.parserFromString(Xhr.response, console.log(va);
}
else if (Xhr.status==404){
Console.log('file not found);
}}}
Xhr.open('get',url of the site,false);
Xhr.send();
Posted
Updated 14-May-20 0:20am
Comments
Maciej Los 14-May-20 2:19am    
This makes no sense at all!

1 solution

You can't do this for security reasons. The only way you'll be able to script one site with another is if the target site is configured to allow your site to script it. If you don't have access to the target site there is no way you will be able to update it to allow this.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900