Page 1 of 1

Making a Browser Window Always Stay on Top

Posted: Mon Aug 07, 2006 11:03 am
by snowrhythm
Hello, I'm writing some code for my company and I'm needing some help
with a little trick that I saw somewhere. The sales people here use a
3D model-viewer that works in a browser to help clients pinpoint the part
that they're requesting if they don't know the name of it. What I want to
do is have the parts-tree for the model popup in a seperate window....simple
enough. But the trick here is that I need that window to stay open when the
user clicks on the browser behind it to rotate the 3D model. So instead of automatically
minimizing, the popup window needs to stay on top because the model and
parts-tree communicate with each other. Does anyone know of anyway to do this?
Any help is greatly appreciated!

Posted: Mon Aug 07, 2006 11:46 am
by Grim...
I'm pretty sure this isn't possible.
You could try using a floating div that the user could drag around, maybe?

Posted: Mon Aug 07, 2006 12:02 pm
by Chris Corbyn
I think a popup blocker would kill this but anyway:

Code: Select all

window.onblur = function(e)
{
    e = e || window.Event;
    window.focus();
}