aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Pop-up getting minimized Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Pop-up getting minimized" Watch "Pop-up getting minimized" New topic
Author

Pop-up getting minimized

Luke Zechariah
Ranch Hand

Joined: Sep 27, 2005
Posts: 117
We are having an application where we are having a pop-up(not a javascript popup but an IE pop-up). This pop-up confirms "yes" or "no". The pop-up is invoked fine. But for some reason after the pop-up is invoked, immediately it gets minimized. Any clue on how make the small window show up(without getting minimized) on getting invoked.
Thank you very much in advance.

Lk.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
An IE pop up. Never heard of such a thing! You talking about window.confirm? Modal window?

Show us the code of this pop up.

Eric
Luke Zechariah
Ranch Hand

Joined: Sep 27, 2005
Posts: 117
What I meant by IE pop-up window was a really jsp page. Sorry for the confusion. This jsp page is getting minimized. But I found a way:

In the new window, I added this code.

window.opener.blur();
window.focus();

Thanks Eric.

Luke.
Luke Zechariah
Ranch Hand

Joined: Sep 27, 2005
Posts: 117
What I meant by IE pop-up window was a really jsp page. Sorry for the confusion. This jsp page is getting minimized. But I found a way:

In the new window, I added this code.
<BODY oload="restoreScr();">

function restoreScr()
{
window.opener.blur();
window.focus();
}

Thanks Eric for the reply.

Luke.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Pop-up getting minimized
 
Similar Threads
Opening parent window if I close the chile window
CSS issue in mozilla.
How to open a hidden command window
how to minimize a window to system tray , and how to restore it from trayIcon's popup menu....???
CSS issue in Mozilla pop up window