• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1391
  • Last Modified:

Bring a browser window to the top

I am working with a windows app that launches my application in to a browser window. However, sometimes our app is not brought to the forefront and either sits behind other windows or just flashes in the windows status bar.

I am sure if the developer of the windows app can set it up to bring the browser to the front with some api calls, but I was wondering if this was possible to do from javascript.
1 Solution
Sure thing, just stick the following in the body tag of the new window.

<body onLoad="window.focus()">

//page content

The solution was cool
JDEE8297Author Commented:
worked like a charm when I used it as well. :)

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now