File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

popup window as alway on the top

 
Alan Hermin
Ranch Hand
Posts: 290
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 93
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can look into modal windows.

Eric
 
Marc Luzietti
Ranch Hand
Posts: 84
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic