View Full Version : Reload new window to top?
Jeff122185
03-21-2003, 09:56 PM
Ok, I'm not really sure how to explain it, but let's just say I already have another window opened named 'window2'. Now in the main window, I click on a link that changes the URL inside window2. Is there a way to make window2 pop-up to the top of their screen so that they don't have click on the task bar thing to bring it up?
Jason
03-21-2003, 10:44 PM
sounds like you want onFocus()
Jason
Quiet Storm
03-21-2003, 11:01 PM
Almost...:
<BODY onLoad="this.focus();">
Put that in window #2. Whenever it loads content, it will go on top.
Jeff122185
03-21-2003, 11:19 PM
Ah, thanks, that works.
Umm, now if I clicked a link in window2, how would I go about getting that link to load back in the original window?
Quiet Storm
03-21-2003, 11:32 PM
Try this:
<A HREF="javascript:;" onClick="window.opener.location.href = 'NewPage.html';">Link</A>
Jeff122185
03-21-2003, 11:34 PM
That works, too! Thanks a lot!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.