Results 1 to 4 of 4

Thread: using javascript function window.focus() to bring the window to the front

  1. #1
    Join Date
    Feb 2014

    using javascript function window.focus() to bring the window to the front


    In our web application we have a requirement to kick off a job & display progress in a modeless status page so user can continue to work while the status page will display progress / updates. We’ve implemented this by doing a window.open to launch the status page.

    On job completion (or failure) we need the status to come to the front to alert the user about job completion and so he can look at the details. Is there a javascript function that does this. We tried using window.focus(), this highlights the window on the task bar but does not come up to the front if another window is active.


  2. #2
    Join Date
    Feb 2014
    Managua, Nicaragua
    I would like to recomend u use a popup modal window instead 'window.open'... Because that way you can manipulate the window

  3. #3
    Join Date
    Feb 2014
    Thanks JCPerez, but this will be a long running job & I don't want to block the user from going back to the opener page and continue to do what he is doing until the job completes. That's the reason for launching the status on a separate page as opposed to launching it modal. Any other ideas on how to do this ?

  4. #4
    Join Date
    Mar 2007
    Why do people always have to go for the difficult option?

    In my opinion, you only need to incorporate a status window withing the existing page that pops up from time to time as needed.
    --> JavaScript Frameworks like JQuery, Angular, Node <--
    ... and please remember to wrap code with forum BBCode tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center