Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8

Thread: Window OnTop?

  1. #1
    New to the CF scene
    Join Date
    Jan 2003
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Window OnTop?

    Is there a script I can use that will keep a small window on top of others? Thanks.

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    576
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you have to do it from a popup and make the popup always raised
    Code:
    var win= window.open("test.html","hi","alwaysRaised=1");

  • #3
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    I tried the "alwaysRaised=1" and it did not keep the window on top. Haven't seen that one before.


    What you need is to use a "Modal" or "Modeless Window"

    A "Modal" window will remain in focus but will not let you access the window beneath.

    A "Modeless" window remains on top and allows access to the window underneath it.

    Try the "Modeless" window


    var newwin=showModalDialog('yourpage.html','win','dialogLeft:200px;dialogTop:200px;dialogHeight:300px;di alogWidth:200px;status:no;resizable:yes;help:no');

    The above should be one line, as it has not rendered correctly in this forum
    Last edited by Mr J; 01-14-2003 at 12:09 AM.

  • #4
    Regular Coder
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    576
    Thanks
    0
    Thanked 0 Times in 0 Posts
    devguru.com
    http://www.devguru.com/Technologies/.../win_open.html
    it tells you about the alwaysRaised property.

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <body onblur="this.focus()">
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    Australia
    Posts
    197
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That wont let you use the mouse in other windows..
    To use alwaysRaised you need to use a signed script last time i looked
    ez
    Animation Rule #64
    Poor quality images are often artistic,
    Poor quality sound is ALWAYS annoying.

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    He didn't ask about using the mouse in other windows.

    Is there a script I can use that will keep a small window on top of others? Thanks.
    I was just giving the simplest solution.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #8
    Regular Coder
    Join Date
    Jun 2002
    Location
    Australia
    Posts
    197
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok, just thought id mention it..
    Animation Rule #64
    Poor quality images are often artistic,
    Poor quality sound is ALWAYS annoying.


  •  

    Posting Permissions

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