Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A Window always on Top

Status
Not open for further replies.

JrClown

Technical User
Oct 18, 2000
393
US
Hello all.
Here's my question: How can I force the po-up window below to always stay on top of the browser when it's opened???
Any help would be appreciated.

<p align=&quot;center&quot;>
<a href='#' OnClick=&quot;window.open('toc.asp','mywindow','toolbar=no,directories=no,status=no, scrollbar=yes, width=450,height=280')&quot;><font color=&quot;#FF0000&quot; size=&quot;3&quot;>Click
</font><font color=&quot;#0000FF&quot; size=&quot;3&quot;>
here</font><font color=&quot;#FF0000&quot; size=&quot;3&quot;> to Search</font></a>
</p>











QUOTE OF THE DAY
Everyone you meet knows something you don't know. Be willing to learn from them.

Jr_Clown :eek:)
 
I don't think you could leave the popup on top while navigating in any other windows, but you could use the Javascript window.focus() and window.onBlur() functions together. I'm not sure where the best place would be to reference these, but in the top window's onBlur you could tell it to mywindow.focus(). This would restrict the user from leaving the window. Every time the window lost focus, it would regain focus and remain on top.

Just an idea. Scott
 

Thanks sndkick, I'll give it a shot. QUOTE OF THE DAY
Everyone you meet knows something you don't know. Be willing to learn from them.

Jr_Clown :eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top