aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes popup window as alway on the top Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "popup window as alway on the top" Watch "popup window as alway on the top" New topic
Author

popup window as alway on the top

Alan Hermin
Ranch Hand

Joined: Feb 16, 2006
Posts: 290
hi all..
i want to show popup window, but this popup window should be displayed as : (always on the top),,how can i do that???
regards
Subhadip Chatterjee
Ranch Hand

Joined: Dec 12, 2006
Posts: 93
Hi there,
if you are writing the pop-up like this:
var handler = window.open("popup.html");
then the following code, will put the focus on pop-up, whuch means pop-up will always be displayed on top every-time, you are creating.

"handler.focus();"

That's it.


Refreshing life every moment...
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You can look into modal windows.

Eric
Marc Luzietti
Ranch Hand

Joined: Feb 02, 2006
Posts: 84
Most modern browsers won't let you do this easily or completely. There are ways around every modal window approach I've found, assuming you aren't trying to take over the desktop. Unless you're trying to create a remote, you may be better off using AJAX to create a "pop-in."

See my previous post related to this
[ March 07, 2007: Message edited by: Marc Luzietti ]

Support Kathy Sierra
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: popup window as alway on the top