View Full Version : Force window to top
Aaron Burgess
October 16th, 2002, 09:48 PM
I would like to know if it's possible to force a window to the front? I have images load up inside a child window (it resizes to match the images), but when I click on a new image the window stays behind the parent. alwaysRaised doesn't work on Explorer, infact it doesn't seem to work that well anywhere.
Does anyone know of a command or script that can force a window to the front?
lostinbeta
October 16th, 2002, 10:27 PM
Oooo, I know this...I know this.... why isn't it coming to me!!!!
window.focus() I believe... I will see if I can set up some kind of example...
IT IS ON THE TIP OF MY TONGUE!!!!!!!!!!!!!!!!
<B>EDIT:</B> Can you supply a .zip file with an file so I can work around the script you are using. It would make things much easier.
reverendflash
October 16th, 2002, 10:48 PM
I think you are right on target...
:P :P
we're not worthy...<i>makes the bow motion</i>
Rev:elderly:
lostinbeta
October 16th, 2002, 10:49 PM
I know it is window.focus()
But my problem is how to implement it into the script. That is what is on the tip of my tongue, but seeing that script he uses will probably help me refresh my memory.
No need to bow rev..... and you are fully worthy!
Aaron Burgess
October 17th, 2002, 07:46 PM
email on it's way. Thanks
huggerFanta
October 21st, 2002, 04:07 PM
Hello Boys!
Is the solution available for me too, I have the same problem!!!
Thank for helping out!!!
lostinbeta
October 21st, 2002, 05:45 PM
hmmm, depending on your script....
Try something like....
function openWin() {
var newWin = window.open(blah).focus();
}
yeah, that is very short and bland, but you should already have the javascript code so I didn't focus on that, I just focused on the focus() (haha, pun intended).
huggerFanta
October 22nd, 2002, 02:30 AM
Thanks, now I know what to do!!!
/ Thanks
lostinbeta
October 22nd, 2002, 02:31 AM
no problem :)
nawapol
October 22nd, 2002, 05:23 AM
test
:P
eyezberg
October 22nd, 2002, 06:55 AM
You can force it to the foreground always (sux!) by combining body on load self.focus and
on kill focus self.focus... not the exact syntax used..
lostinbeta
October 22nd, 2002, 12:17 PM
Well, I don't believe the onLoad="self.focus();" KEEPS it at the front. I believe it puts it in the front when the page loads.
Now Modal Dialog Windows stay in the front all the time. But they are incredibly annoying and I am not going to tell anyone how to do them :) :evil:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.