38 users online (0 members and 38 guests)  


  Results 1 to 5 of 5

Related

  1. Javascript Window Always on Bottom    Forum: Javascript Forum
    Replies: 1
  2. Replies: 0
  3. refresh popup window using javascript    Forum: Javascript Forum
    Replies: 3
  4. javascript-help with opening in frame window    Forum: Javascript Forum
    Replies: 1
  5. problem with javascript opening a new window    Forum: Javascript Forum
    Replies: 4
  1. #1
    paulbh's Avatar
    New User

    Status
    Offline
    Join Date
    Nov 2003
    Posts
    1

    javascript to window always on bottom (underneath)

    Hello Friends

    I am trying to get a pop up window to load behind all open windows.

    On unload I have a pop up open, which is working fine. Problem is if you click on the buy now button the window still comes up and the message is not valid if you are purchasing.

    I found a scrip to stop pop up on unload when you click the buy now button but I can not get it to work. So I thought the easy option would be to get the pop up to stay in the back ground out the way.

    Can any one help.

    Regards

  2. #2
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    Hey paulbh, welcome to the forums

    To make a pop up window go behind the other windows, or as it is called "pop under", use the pop up code you currently are using but add the below into the head part of your script.

    Code:
    self.blur();
    Dave

  3. #3
    eadunn's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2003
    Posts
    2

    I am looking to code a window always on top.

    I am looking for the opposite functionality but need to be able to continue loading pages into the pop-up window if it is not closed. I can get the page to stay on top by using
    Code:
    <BODY onBlur="focus()"> or <BODY onBlur="focus()">
    but then I can't interact with the window at all. Any answers would be greatly appreciated.


    Quote Originally Posted by Dave
    Hey paulbh, welcome to the forums

    To make a pop up window go behind the other windows, or as it is called "pop under", use the pop up code you currently are using but add the below into the head part of your script.

    Code:
    self.blur();
    Dave

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi there,

    You can access child windows fine by referring to them as their child-name , eg opening the window like this -

    Code:
    win=window.open(...blah
    you could then access that window with -

    Code:
    win.location.href='somewhere_else.html';
    or whatever you wanted to do. There is another example of useage here -

    http://www.ahfb2000.com/webmaster_he...t=close+window
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  5. #5
    eadunn's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2003
    Posts
    2

    Smile

    Thanks for the quick reply I'll have to try that - in the meanwhile I found a fix that is easy and seems to work so I will share it here. All I did was add MyWindow.focus(top) right into the link and it allows me to keep dumping new pages into the already opened window until I close it.

    Code:
    <a onClick="MyWindow=window.open('filename.htm','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=no,width=500,height=385'); MyWindow.focus(top);  return false;" href="filename.htm">
    Thanks again for your suggestion.


    Quote Originally Posted by QuietDean
    Hi there,

    You can access child windows fine by referring to them as their child-name , eg opening the window like this -

    Code:
    win=window.open(...blah
    you could then access that window with -

    Code:
    win.location.href='somewhere_else.html';
    or whatever you wanted to do. There is another example of useage here -

    http://www.ahfb2000.com/webmaster_he...t=close+window



Tags for this Thread