stay on top window
Posted on 2000-03-24
Ok I am very stuck on this problem.
I have a main page with 2 buttons, pressing a button launches a little popup window
the popup window has content in accordance with the variable passed to it in the url querystring.
1 or 2
The first time I load the main page and click on button1, the Popup window
is created and displays fine.
Then I click on button2 , doing so the Popup window looses focus as the main window
is brought to the front. I alt tab to the Popup window ,and the contents of which
are fine (number 2 content).
The problem is I don't want to have to alt tab to the popup window, is there a way to
make the popup stay on top???
If no one can give me a solution for this then I will delete this question, I have
already spent points searching experts-exchange for an answer, and turned up nothing
of and substance. infact the general concensus is it cannot be done ..
lala lala lala rubbish!
It can be done the question is how?
here is a previous answer that does not work for example:
// if (document.all) WinHandle = window.showModalDialog("DayView.asp?PersonID="+P+"&TheDate="+D+"&MCode="+C,'arguments','dialogWidth=360,dialogHeight=290')
// else WinHandle = window.open("DayView.asp?PersonID="+P+"&TheDate="+D+"&MCode="+C,"DetailView",["resizable=0,width=360,height=290,alwaysRaised"]);
and the idea of onbluring setfocusing aslo does not work.
Here is a snippet of my code:
var N = num;
DayWindow = window.open("Popup.asp?num="+N,"DetailView",["resizable=0,width=360,height=290"]);
<input type="button1" value="open win1" onclick="ShowDetail(1)">
<input type="button2" value="open win2" onclick="ShowDetail(2)">
<no points if you tell me its not possible>