Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q159 How can I change the focus from one window to the other window (and vice versa) by clicking on an link or image, but keep both windows open?

irt.org | Knowledge Base | JavaScript | Window | Q159 [ previous next ]

Q159 How can I change the focus from one window to the other window (and vice versa) by clicking on an link or image, but keep both windows open?

Using the previous example:

In the main window:

<A HREF="javascript:myWindow.focus()">show popup window</A>

In the popup window:

<A HREF="javascript:opener.focus()">show main window</a>

Feedback on 'Q159 How can I change the focus from one window to the other window (and vice versa) by clicking on an link or image, but keep both windows open?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.