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!

Set foucs to open window

Status
Not open for further replies.

nkiefer

Programmer
May 21, 2001
86
US
I have a form on a single ASP page. The submit button opens a new window and displays the results and sets the focus to that new window. However if I leave the new window open and return to the original window and submit the data again, the data in the new window is updated but the focus remains on the original window. Is it possible to set the focus back to the data page after it has already been open once by the submit button?
 
put the following in the HEAD of the page that is opened in the popup window:
Code:
<SCRIPT LANGUAGE=&quot;JAVASCRIPT&quot;>
window.focus();
</SCRIPT>
Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top