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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keep a window always on top 1

Status
Not open for further replies.

DaveIII

Programmer
Jun 25, 1999
1
US
I am working on a image gallery script where a preview page shows up after image selected in form on main page. I would like to have the popup stay on top while another image can be selected in main page.<br>

 
Is there any reason why you can't use frames to do this??? It would be a MUCH easier task if you did that.<br>
<br>
-Robherc<br>
robherc@netzero.net
 
Use the command<br>
window.focus();<br>
in whichever window you want to be on top. If the window hasn't already been opened, first do window.open(args); then put javascript in that window that contains window.focus();<br>
There are 4 args for window.open.
 
This window.focus() works fine as long as there are no form fields on the page that you need to enter data into. Using window.focus() prohibits the user from typing into a textbox on the page. Any suggestions for this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top