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
Javascript Question. Check if Window exists.
Moderator: General Moderators
Re: Javascript Question. Check if Window exists.
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.
Re: Javascript Question. Check if Window exists.
If any DOM magicians could tell me how to do that i would be very grateful.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.