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>
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?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.