Re: make pop up window stay on top
by "R.G.Daniel" <rgdaniel(at)rogers.com>
|
Date: |
Sun, 14 Dec 2003 10:29:16 -0500 |
To: |
Leigh Jennings <leigh(at)houndheaven.com.au>, hgw <hwg-techniques(at)hwg.org> |
References: |
norton |
|
todo: View
Thread,
Original
|
|
At 03:09 AM 12/14/2003, Leigh Jennings wrote:
>What I need to do is make a new (smaller) window which is spawned by
>clicking on a thumb, stay on top so when/if the user clicks on another
>thumb in the main window they will see it load into the spawned window.
>Currently I can have a new window spawned for each thumb clicked - Or -
>each image will load into the same spawned window BUT it hides on the task
>bar after the second thumb is selected.
If I understand you correctly, there's two things you need to do to achieve
this:
(1) Make sure you target the popup window by name, and use the same name
for each instance of the popup behaviour. This will reuse the new window if
it's already open.
(2) In _each_ target window's html page, on the body tag, include a little
javascript tag that says:
"onLoad="javascript:self.focus()" This will bring the focus back to the
popup when the behaviour loads it.
Works for me anyway. Hope this helps.
---
R.G.Daniel
http://www.rgdaniel.com/
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA