JavaScript
windowObject.focus Method
Syntax
windowObj.focus();
Description
Brings the window to the front of the stack if there is more than one window.
Example
//get a pointer to the window object
var windowObj = {dialog.object}.getWindow('MYWINDOW');
if (windowObj) {
windowObj.focus();
}