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]
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]