cross-window-scripting

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 do is warn other windows without any server round-trips when a user does something in one ...

Why would javascript code not be able to access variables in the window that opened it (window.opener) if both windows are from the same domain?

I'm trying to use the Facebook Connect Javascript API. I have a Facebook login button on subdomain.example.com/foo/bar/baz/article.html. Clicking on the button opens a login page on Facebook's domain. After you log in, that child window goes to subdomain.example.com/foo/xd_receiver.html, which is a file that Facebook provides that just h...

How reference popup object when opener page changes?

This is driving me crazy! Scenario: The main page opens a pop-up window and later calls a function in it: newWin = window.open(someurl,'newWin',options); ...some code later... newWin.remoteFunction(options); and it's ok. Now, popup is still open and Main Page changes to Page 2. In Page 2 newWin doesn't exist anymore and I need t...

Javascript cross window interaction.

Hi, I hace this very simple javascript to write on a text area when the link is clicked: <head> <script language="javascript" type="text/javascript"> function addtext(text) {document.form.textarea.value = document.form.textarea.value+= text;} </script> </head> <body> <form action="" method="" name="form"> <textarea name="te...