Click to See Complete Forum and Search --> : window focus
slimjim
07-17-2008, 06:04 AM
Does anyone know how to keep a window focus on top of other windows, but also on the popup move focus to the form or form field while keeping window to be forced open on top of other windows.
I know this may be javascript, but I am hoping one of the members knows how to do this or have done it before or can send me to a link or something.
dougal85
07-17-2008, 08:00 AM
I don't think there is a way you can force it...
If you do find one, don't use it. It's annoying.
NogDog
07-17-2008, 10:33 AM
You can use a combination of JavaScript and CSS to make what looks like a window (but is actually a block-level HTML element on the same page) appear/disappear much like an actual window. Basically the element in question has it's initial CSS "display" property set to "none". Then you use JavaScript upon the desired trigger to change the "display" value to "block". You also use CSS to make that element "position: absolute" along with the "top", "left", "right", and/or "bottom" properties to control where it is positioned on the page. You can then use a link, icon, etc. with an onclick event that sets the display value back to "none" when you want to close that pseudo-window.
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.