<html><div style='background-color:'><DIV>
<P>This is just a guess but.... If there were no other code in your function after the window.open event, then the focus would remain on your new window.<BR><BR>P.S. The second parameter of your window.open event, which you have passed as nothing (""), is for the window name.</P></DIV>
<DIV></DIV>
<DIV>Cutter</DIV>
<DIV></DIV>
<DIV><A href="http://www.falcon-knives.com/">Falcon Knives</A></DIV>
<DIV>&nbsp;</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>----Original Message Follows---- 
<DIV></DIV>From: ecentofa@att.net 
<DIV></DIV>Reply-To: javascript@LaTech.edu 
<DIV></DIV>To: javascript@LaTech.edu 
<DIV></DIV>Subject: [Javascript] focus() not working in NN6 
<DIV></DIV>Date: Wed, 07 Nov 2001 00:15:51 +0000 
<DIV></DIV>
<DIV></DIV>Hello, 
<DIV></DIV>
<DIV></DIV>I'm trying to find some insight into why this code does 
<DIV></DIV>not work in NN6. This code is the event handler for an 
<DIV></DIV>href tag. When I click the link, the new window opens 
<DIV></DIV>and the correct URL loads, but then the original window 
<DIV></DIV>gets the focus almost immediately. If I comment out the 
<DIV></DIV>newWindow.focus() line, the new window is displayed for 
<DIV></DIV>a few seconds longer, but it still loses focus. 
<DIV></DIV>
<DIV></DIV>Thanks for any insights you can provide. 
<DIV></DIV>
<DIV></DIV>-eileen 
<DIV></DIV>
<DIV></DIV>code: 
<DIV></DIV>
<DIV></DIV>function intercept(idx,urlstring,newwindowname) 
<DIV></DIV>{ 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>document.links[idx].target = ""; 
<DIV></DIV>document.links[idx].href=self.location + 
<DIV></DIV>self.location.hash; 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>newWindow = window.open 
<DIV></DIV>(urlstring,"","height=400,width=400,scrollbars,resizable" 
<DIV></DIV>); 
<DIV></DIV>newWindow.name = newwindowname; 
<DIV></DIV>newWindow.focus(); 
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>} 
<DIV></DIV>_______________________________________________ 
<DIV></DIV>Javascript mailing list 
<DIV></DIV>Javascript@LaTech.edu 
<DIV></DIV>http://www.LaTech.edu/mailman/listinfo/javascript 
<DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html>