Hi,
On a page I have a button onClick of the button I open a popup window and at the same time I submit the parent window. How do I make sure the popup window stays on top.
I tried setting the focus on popup window. It works but not always only some times I wonder why? I think if the parent window is little slow in reloading then the focus sifts back. Is there any better and concreat solution for this?
Help or Ideas are greatly appriceated.
Thanks
Gorge
On a page I have a button onClick of the button I open a popup window and at the same time I submit the parent window. How do I make sure the popup window stays on top.
Code:
/*
This function will check the status and opens a new popup
1. Status == Pending
open new popup window
submit the parent window
2. Status != Pending
open new popup window
*/
function openPopUpAndSubmit(statusObj, url){
if(statusObj.value == "Pending"){
var flag = window.confirm("This will set the status as Active");
if(flag){
openWindow(url);
var formObj = eval("window.form0");
formObj.submit();
}else{
openWindow(url);
}
}else{
openWindow(url);
}
}
Help or Ideas are greatly appriceated.
Thanks
Gorge