if you can change the javascript source, i'd say that the url you call have aditional GET/query string parameters, or a hash, and that your js parses it and act accordingly
if you want to use an existing window, you can probably get the instance using COM and with some method around change the hash of one of the open websites to send commands to javascript without reloading. i'm pretty sure it is possible to do something like that with IE, and probably with FF. of course, you need to create a desktop app that get the instances and call its methods. i'd recommend .net or a .vbs script
答案取决于这种关系。例如,如果 A 以某种方式导致 B 生成,则只需将“指针”传递给 B(可以简单地是会话 ID)即可。
You want communication between two browser windows, but first you must start from the first step: How will you relate a browser window to another one? Why should A contact B not C?
The answer depends on this relationship. For example, if A is somehow causing B to spawn, it would be a matter of passing a "pointer" to B (which could simply be a session ID).
You can insert
<script>
tag on the page?If yes you can put inside function call, or other code