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

Setting focus between 2 browser sessions

Status
Not open for further replies.

MENON

Programmer
Jul 23, 2001
28
US
Hi All,

We have an application that runs on the browser. When user clicks the HELP button, application opens a new browser session for HELP page. The user can switch back to application. Now is user clicks the HELP button and previous HELP browser is still open, HELP browser gets refreshed, however it doesn't come into focus. Is there a simple way of achieving this.

Thanks,
Rakesh Menon
 
In the body tag of the help page add OnLoad="this.focus()" this should bring the window to the top.

RnK
 
hie
if u're openin help like this wnd=window.open("help.html","","")
then its simple: wnd.focus() whenever u want 2.. regards, vic
 
You guys are great. Thanks "RnK" and "vituz" for your help.

Regards, Rakesh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top