0

In my webapp I work with new Tabs I open with window.open. Sometimes, a tab with the target-name is already open in the background and the window.open(..., "sametarget") only reloads it, which is fine - but the Tab stays in the background after reloading, which is not. Is there any way (JavaScript? window.open parameter?) to get it to the foreground after reloading? Or is this prohibited by browser security? I am trying this in IE7 / IE8.

Chris
  • 1

1 Answers1

0

Does window.focus() solve your problem?


EDIT

Possibly not: Possible to set tab focus in IE7 from JavaScript

Community
  • 1
  • 1
James McCormack
  • 9,217
  • 3
  • 47
  • 57
  • I tried window.focus(), didn't seem to do anything. I would be happy already, if there were a browser setting to focus automatically on reloaded tabs or something along those lines, but I don't think there is... – Chris May 17 '11 at 08:54