Connecting Tech Pros Worldwide Forums | Help | Site Map

Top Window

Graham Mattingley
Guest
 
Posts: n/a
#1: Jul 20 '05
Hello Group,

Is there anyway for me to use Javascript to make sure a window in on top all
of the time. This is not for pop-up ads, I have written a pop datepicker,
but when I click outside of the new window the calander is lost ??

any ideas ?

Kind Regards

Graham Mattingley



David Lionetti
Guest
 
Posts: n/a
#2: Jul 20 '05

re: Top Window


For a popup date picker, you could try using the "ShowModalDialog" function
instead of the "open" function. The modal dialog will stay on top until the
user closes it (or you close it by capturing an event and closing the dialog
through the "close" function. The only draw back is that this window will
not allow focus to go to any other window in that IE instance until it is
closed. You can also return the value of the date picked easily by using
the ShowModalDialog function without having to use the "opener" handle.


"Graham Mattingley" <graham@technocom.com> wrote in message
news:bi0p4f$brb$1$8302bc10@news.demon.co.uk...[color=blue]
> Hello Group,
>
> Is there anyway for me to use Javascript to make sure a window in on top[/color]
all[color=blue]
> of the time. This is not for pop-up ads, I have written a pop datepicker,
> but when I click outside of the new window the calander is lost ??
>
> any ideas ?
>
> Kind Regards
>
> Graham Mattingley
>
>[/color]


Closed Thread