How does soundcloud do to stop current playing sound when another soundcloud window or tab is playing ?
I'm looking for a way to send an event from a tab/window to another one, without using Child Window design.
I tried to use custom Cookie event but it did not affect other tabs.
Use
localStorage
.See the local-storage module by the author of that article that offers an API that might be of some use to you:
Not sure if you are looking for this? Server Sent Events.
http://www.w3schools.com/htmL/html5_serversentevents.asp
For anyone else interested in the old-school, access of a window via child/parent, there is this example. In your parent page, launch a child page, and keep the
myWindow
reference around. This allows you access to the entire DOM of the child window. You can then control child => parent or parent => depending on how you want to control things.