Javascript Question. Check if Window exists.

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
mad_phpq
Forum Commoner
Posts: 85
Joined: Fri Apr 27, 2007 5:53 am

Javascript Question. Check if Window exists.

Post by mad_phpq »

Hi, is there anyway for me to check to see if a window exists? I want to run something if a window named 'main' has been created.

Thanks
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Javascript Question. Check if Window exists.

Post by pickle »

When a window is created, it can be assigned to a variable I believe - you can check if that variable exists. Other than that there may be some DOM magic you can do to see if the current window has a child window.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
mad_phpq
Forum Commoner
Posts: 85
Joined: Fri Apr 27, 2007 5:53 am

Re: Javascript Question. Check if Window exists.

Post by mad_phpq »

pickle wrote:When a window is created, it can be assigned to a variable I believe - you can check if that variable exists. Other than that there may be some DOM magic you can do to see if the current window has a child window.
If any DOM magicians could tell me how to do that i would be very grateful.
Post Reply