You can use the XMLHTTP component or IFRAME to obtain data from the same domain. This is simple because there is no cross-origin access permission problem.
However, to access data in different domains, XMLHTTP does not have the permission to obtain data due to browser security settings, and IFRAME does not have the permission to pass the obtained data to the parent window, there seems to be no other solution.
Epiphany ......
Scripts that reference different domains on the webpage do not prompt insufficient permissions. By the way, it is true!
The solution is found. Now let's test it briefly:
First, create a page (test.html) on the 51js.comserver ).
<Button onclick = "loadScript ('HTTP: // aboutplayer.com/alert.js')"> Test Alert </button> </p> <button onclick = "loadScript ('HTTP: // aboutplayer.com/info.js') "> Get My Info </button> </p> <p> My Name: <input id = "myname" type = "text" value = ""> </p> <p> My Blog: <input id = "myblog" type = "text" value = "">