By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,693 Members | 1,650 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,693 IT Pros & Developers. It's quick & easy.

Checking for new or popup window and activating close button

P: n/a
Greetings,

I do not know whether such code exist but no harm asking:

Is it possible for me to make visible a close button if the active
window is a popup window or a new window (other than the main window)?

What I mean is this:

If the present window is the main window, then the close button should
not be visible on the page. Otherwise, the close button should be made
visible and active (i.e. can be clicked to close the window).

Any help is much appreciated.

Andrew
ko******@yahoo.ca
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
andrewkooi wrote:
Is it possible for me to make visible a close button if the active
window is a popup window or a new window (other than the main window)?
If that is the case, the "opener" property of the current Window object
is not null, otherwise it is a reference to the opener Window object.
ko******@yahoo.ca


Put this in your Reply-To header.
HTH

PointedEars
Jul 23 '05 #2

P: n/a
andrewkooi wrote:
Is it possible for me to make visible a close button if the active
window is a popup window or a new window (other than the main window)?
If that is the case, the "opener" property
of the current Window object is not null.
ko******@yahoo.ca


Put this in your Reply-To header.
HTH

PointedEars
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.