Making a Browser Window Always Stay on Top

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
snowrhythm
Forum Commoner
Posts: 75
Joined: Thu May 04, 2006 1:14 pm
Location: North Bay Area, CA

Making a Browser Window Always Stay on Top

Post 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!
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

I'm pretty sure this isn't possible.
You could try using a floating div that the user could drag around, maybe?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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();
}
Post Reply