-4

I got a javascript that fills in the modal html. I would like after that to maximize the window if it is minimized or to focus that tab if it is maximized and not focused. Anybody knows how to do it?

Note: I'd like it to also work in older IE if possible if not I am pleased with the new one also

Thank you all!

Balaj Ovidiu
  • 15
  • 1
  • 8
  • 3
    [Yet, the question is to be found](https://stackoverflow.com/questions/3311293/javascript-bring-window-to-front-if-already-open-in-window-open) – 3Dos Oct 23 '17 at 07:18
  • Should help with browser minimized detection https://stackoverflow.com/questions/10328665/how-to-detect-browser-minimize-and-maximize-state-in-javascript – Nick Cordova Oct 23 '17 at 07:21
  • Thank you very much for helping me! – Balaj Ovidiu Oct 23 '17 at 08:12

1 Answers1

-2
window.open("https://www.google.com");

This will open a new window and you can change the url to suit your needs

Tom
  • 4,257
  • 6
  • 33
  • 49
Dhaval Chheda
  • 4,637
  • 5
  • 24
  • 44