Questions tagged [cross-window-scripting]
17 questions
25
votes
2 answers
Sending a message to all open windows/tabs using JavaScript
I hear HTML5 has window.postMessage(), but it seems to require having a handle on the window (or tab, throughout this question) you're posting the message to. What if I want to broadcast to all open windows? Is this possible?
(What I'm trying to…

Kev
- 15,899
- 15
- 79
- 112
7
votes
1 answer
How can I start an UWP application through a batch file?
I tried to open Skype using batch scripting (.bat) in Windows 10 but found that in Windows 10 Skype came as default and it is moved to Windows Apps. Is there any way to do this?

Siluveru Kiran Kumar
- 699
- 1
- 10
- 16
3
votes
2 answers
Is there a way to reply to only the sender, after receiving a BroadcastChannel message?
Suppose I have a bunch of same-origin windows or tabs A, B, C, D, and E, that don't hold references to each other. (e.g. a user opened them independently). Suppose A sends a BroadcastChannel message to the others, and as a result, D needs to send…

Doin
- 7,545
- 4
- 35
- 37
2
votes
2 answers
How to create click event across MULTIPLE iframes (same domain)?
I have a main (parent) page that hosts 3 iframes that are under the same domain. The iframe's src attribute is added on a click event, so the iframe's aren't loaded until needed.
What I want is when I click a certain div on my main page, it will…

strawberrymilk
- 392
- 2
- 10
1
vote
0 answers
Getting cross Window messages by window.postMessage in NextJS wrong
I have need to communicate with a redirect page after a 3D secure Authorization is completed by Checkout Card payment provider. Because I don't want to change the Parent window location I have a setup like this
/payment.tsx
This is the page that…

Ndifreke
- 732
- 1
- 8
- 13
1
vote
3 answers
Javascript cross window interaction
I have this very simple Javascript to write on a text area when the link is clicked: