File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Connection betweeen two browser tabs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Connection betweeen two browser tabs" Watch "Connection betweeen two browser tabs" New topic

Connection betweeen two browser tabs

Sebastian B. Ecker

Joined: Nov 22, 2006
Posts: 9
Hi guys,

I am wondering if you guys could tell me what to do to build up a connection between two browser tabs. It means there is tab no 1 with control buttons and another tab (no 2) with the result set presentation. Now I pressing the control buttons in tab 1 there should be a change in tab no 2 where another result is appearing. Is that possible?

Best wishes

Anyone who can't laugh at himself is not taking life seriously enough. - Larry Wall
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Hello "bas-t"-

You've been around the ranch long enough to know that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

As to your question, if one of the tabs is a child window of the other one, then they can communicate with one another (the call returns a reference to the child window). But if they were opened independently of one another, no.
Sebastian B. Ecker

Joined: Nov 22, 2006
Posts: 9
I feel sorry for breaking the name policy. I changed it immediately. I haven't looked into the policy, that was my fault.

Thank you for your reply.

S. Ecker
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
There is no way to have JavaScript update another tab unless for some reason th browser opens up pop up windows in new tabs.

I agree. Here's the link:
subject: Connection betweeen two browser tabs
It's not a secret anymore!