Link to home
Start Free TrialLog in
Avatar of filemanager
filemanagerFlag for Canada

asked on

Setting focus to a window (Internet Explorer)

Hi everyone,

I have a drop down box where when you pick a news release, the news release pops up in a new window. The select tag is here:

<select name="News" size="1" onchange="window.open(this.value,'News', 'location=no, toolbar=no, menubar=no, status=no, scrollbars=yes, resizable=yes')">

Here's what's not working. Say you pick a news release, the window pops up fine. But say you leave the pop up window open, and you pick another news release, the second news release shows up in the pop up window fine, except the pop up window is behind the window with the drop down box. Is there a way to make the pop up window come in the front when the second news release is chosen?

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of aschroeder1
aschroeder1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of filemanager

ASKER

Oh ok thanks. I tried "window.setfocus();" but it didn't work :P Anyway window.focus() works great! :)