suganya
09-18-2003, 02:12 PM
function popupAddlColumnDialog() {
var centerX=(screen.width-700)/2;
var centerY=(screen.height-700)/2;
document.getElementById('retrieveButton').focus();
document.advancedSearch.savedSearchName.value = parent.criteriaHeader.getSavedSearchName();
alert("savedSearchName in advancedSearch form = " + document.advancedSearch.savedSearchName.value);
window.open("","addColumnsWindow","width=700px,height=700px,top='+centerY+',left='+centerX+',scrollbars=yes,status=no,menubar=no,toolba r=no,resizable=no,center=yes,location=no");
parent.addColumnsSubmit.doOnClick();
}
the above code is the one i am using for centering my popup window...
i dont know what the problem is.....
it is centered to the topleft corner of the screen...why is this?...
thanks
var centerX=(screen.width-700)/2;
var centerY=(screen.height-700)/2;
document.getElementById('retrieveButton').focus();
document.advancedSearch.savedSearchName.value = parent.criteriaHeader.getSavedSearchName();
alert("savedSearchName in advancedSearch form = " + document.advancedSearch.savedSearchName.value);
window.open("","addColumnsWindow","width=700px,height=700px,top='+centerY+',left='+centerX+',scrollbars=yes,status=no,menubar=no,toolba r=no,resizable=no,center=yes,location=no");
parent.addColumnsSubmit.doOnClick();
}
the above code is the one i am using for centering my popup window...
i dont know what the problem is.....
it is centered to the topleft corner of the screen...why is this?...
thanks