Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checking to see if an object exists or not.

Status
Not open for further replies.

jmorris

Programmer
May 2, 2000
15
AU
I am wanting to detect if an object (a popup in this case) exists or not. Basically, I am wanting to write a function that pops up a window if id doesn't exist, or in the case that it does exist, just brings it into focus.

The function is currently like this:
----------------------------------------
function call_create_profile() {
if (WINDOW CALLED CREATE_PROFILE EXISTS){
create_profile.focus();
}
else{
MM_openBrWindow('forms/sprof_form_4.cfm','create','width=600,height=400,scrollbars=yes');
}
}
-------------------------------------------

Any help greatly appreciated
[sig][/sig]
 
if (create_profile)
create_profile.focus() [sig]<p>nick bulka<br><a href=mailto: > </a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top