Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Checking for new or popup window and activating close button

Reply
Thread Tools

Checking for new or popup window and activating close button

 
 
andrewkooi
Guest
Posts: n/a
 
      08-31-2004
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
http://www.velocityreviews.com/forums/(E-Mail Removed)
 
Reply With Quote
 
 
 
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      09-04-2004
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.

> (E-Mail Removed)


Put this in your Reply-To header.


HTH

PointedEars
 
Reply With Quote
 
 
 
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      09-04-2004
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.

> (E-Mail Removed)


Put this in your Reply-To header.


HTH

PointedEars
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page -> Popup -> New Page (close popup, leave old page open) julie.siebel@gmail.com Javascript 2 01-18-2006 12:57 AM
How to close opened popup window by clicking a button? Sujan Javascript 6 06-25-2005 02:40 AM
Popup Window Detection and Close Button Activation andrewkooi Javascript 6 09-04-2004 05:10 PM
New Popup Window from an existing Popup Window Raffi Javascript 4 08-12-2004 01:21 PM
Main > Popup > Popup > Close popup AND new URL in main? Jens Peter Hansen Javascript 7 06-19-2004 08:56 PM



Advertisments