Results 1 to 3 of 3

Thread: How to keep window on top

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    1
    Thanks
    0
    Thanked
    0 times in 0 posts

    How to keep window on top

    Hi All,

    Can you please tell me how can I keep newly opened window on top if the user click on the other windows as well then also newly opened windows should saty on top.

    I am opening new windows using window.open methode of java script.

    Any help really appriciated.

    Thanks
    John

  2. #2
    Senior Member
    Join Date
    Jul 2004
    Location
    London
    Posts
    2,456
    Thanks
    100
    Thanked
    75 times in 51 posts
    • Mblaster's system
      • Motherboard:
      • ASUS PK5 Premium
      • CPU:
      • Intel i5 2500K
      • Memory:
      • 8gb DDR3
      • Storage:
      • Intel X25 SSD + WD 2TB HDD
      • Graphics card(s):
      • Nvidia GeForce GTX 570
      • PSU:
      • Corsair HX520
      • Case:
      • Antec P180
      • Operating System:
      • Windows 7 Professional x64
      • Monitor(s):
      • HP w2207 (22" wide)
      • Internet:
      • Rubbish ADSL

    Re: How to keep window on top

    Pretty sure that's impossible, since it's just a new browser window and you don't have that much control over it, but if you used something like a light box instead of opening a new window I think you could achieve a similar result.

    Here's a good article with example so you can see what I mean:
    Example: http://www.growldesign.co.uk/projects/lb/
    Article: http://carsonified.com/blog/design/c...ript-lightbox/
    Last edited by Mblaster; 25-05-2010 at 11:51 AM.
    I don't mean to sound cold, or cruel, or vicious, but I am so that's the way it comes out.

  3. #3
    PHP Geek Flash477's Avatar
    Join Date
    Dec 2008
    Location
    Devon
    Posts
    822
    Thanks
    51
    Thanked
    72 times in 65 posts

    Re: How to keep window on top

    The closest you can get to a modal window is below:

    Code:
    <script type="text/javascript">
    	function funModalWindow()
    	{
    		if (window.showModalDialog) {
    			window.showModalDialog("http://www.google.co.uk/","name","dialogWidth:255px;dialogHeight:250px");
    		} else {
    			window.open('http://www.google.co.uk/','name','height=255,width=250,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes');
    		}
    	}
    </script>
    It works in IE and FF, but not sure about the others.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Cooler Master "Scout" window case mod
    By Bill Owen in forum Chassis and Mods
    Replies: 6
    Last Post: 24-07-2009, 09:21 AM
  2. Replies: 99
    Last Post: 02-12-2008, 07:03 PM
  3. Window snapping Cocoa application for Mac OS X
    By Budding in forum Software
    Replies: 4
    Last Post: 24-06-2007, 03:41 AM
  4. Opera 8 - window tweaking
    By charger in forum Software
    Replies: 2
    Last Post: 31-05-2005, 12:38 AM
  5. Window Tints - New Legislation Planned
    By Barakka in forum Automotive
    Replies: 14
    Last Post: 05-05-2005, 03:32 PM

Posting Permissions

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