View Full Version : Window OnTop?
RHuber
01-10-2003, 09:43 PM
Is there a script I can use that will keep a small window on top of others? Thanks.
chrismiceli
01-10-2003, 11:04 PM
you have to do it from a popup and make the popup always raised
var win= window.open("test.html","hi","alwaysRaised=1");
I tried the "alwaysRaised=1" and it did not keep the window on top. Haven't seen that one before.
What you need is to use a "Modal" or "Modeless Window"
A "Modal" window will remain in focus but will not let you access the window beneath.
A "Modeless" window remains on top and allows access to the window underneath it.
Try the "Modeless" window
var newwin=showModalDialog('yourpage.html','win','dialogLeft:200px;dialogTop:200px;dialogHeight:300px;di alogWidth:200px;status:no;resizable:yes;help:no');
The above should be one line, as it has not rendered correctly in this forum
chrismiceli
01-13-2003, 11:18 PM
devguru.com
http://www.devguru.com/Technologies/ecmascript/quickref/win_open.html
it tells you about the alwaysRaised property.
whammy
01-14-2003, 01:08 AM
<body onblur="this.focus()">
ez4ne12c
01-14-2003, 01:17 AM
That wont let you use the mouse in other windows..
To use alwaysRaised you need to use a signed script last time i looked
ez
whammy
01-14-2003, 01:32 AM
He didn't ask about using the mouse in other windows. ;)
Is there a script I can use that will keep a small window on top of others? Thanks.
I was just giving the simplest solution. :D
ez4ne12c
01-14-2003, 04:17 AM
ok, just thought id mention it..
:D
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.