This article introduces the cross-Origin data transmission implemented by window. name. It is very useful for you to practice it yourself. I would like to share with you the script home website for your reference. It is really useful. The specific implementation method is recorded as follows:
There are three pages:
A.com/app.html:application page.
A.com/proxy.html:the proxy file is generally an HTML file without any content, and its contents and application pages are in the same domain.
B .com/data.html:the page where data is obtained from the application page, which can be called the data page.
The basic steps are as follows:
Create an iframe in the application page (a.com/app.html) and point its src to the data page (B .com/data.html ).
The data page will append the data to the temporary nameof the iframe. the data.html code is as follows: