javascript - How to implement data exchange between different pages?
淡淡烟草味
淡淡烟草味 2017-06-14 10:51:03
0
3
800

As shown in the picture above, there are 1 Baidu 2 Bole 3github 4 blank pages
I want the data of these 4 pages to be able to call each other. How should I do it?
I want to write code directly in the chrome console (or other browsers) to achieve the functions I want. How should I do this? What information is available?

PS: Using Cookie, Storage, and IndexedDB, can these three be implemented? Data calls between different websites?

我感觉,chrome 一个页面,就是一个独立的世界,相同网站的多个页面,之前可以使用cookie什么的进行通信,但是不同网站、新标签页的世界壁太强,如何打破呢?
淡淡烟草味
淡淡烟草味

reply all(3)
淡淡烟草味

cookies

Ty80

As far as I know, if you are engaged in chrome plug-in development, it is possible. Chrome provides the corresponding API, and the sub-pages played by IE can communicate. I have not understood what you are talking about. I will wait for the answer.

我想大声告诉你

The main domain is different. Without the help of the background, communication can only be carried out through url/iframeadding parameters.
If they are in the same domain, they can communicate through localStorage/sessionStorage/cookie/url plus parameters/postMessage/iframe etc.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template