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!
Making a Browser Window Always Stay on Top
Moderator: General Moderators
- snowrhythm
- Forum Commoner
- Posts: 75
- Joined: Thu May 04, 2006 1:14 pm
- Location: North Bay Area, CA
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
I think a popup blocker would kill this but anyway:
Code: Select all
window.onblur = function(e)
{
e = e || window.Event;
window.focus();
}