JavaScript Page Width/Height

Discussion in 'JavaScript' started by Pudge1, Oct 21, 2009.

  1. #1
    How do you change it once a page has loaded. Needs to work with FF/IE/Safari/Opera/Google Chrome
     
    Pudge1, Oct 21, 2009 IP
  2. VladimirS

    VladimirS Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can use
    window.resizeTo(numWidth, numHeight)
    Code (markup):
    but user can disable this functionality.
    So there is no way to guarantee, that window will be resized.
     
    VladimirS, Oct 23, 2009 IP
  3. Pudge1

    Pudge1 Well-Known Member

    Messages:
    912
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    Digital Goods:
    1
    #3
    Does anyone know how to open up an actual new window with JS so it works with FF?
     
    Pudge1, Oct 23, 2009 IP
  4. VladimirS

    VladimirS Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    FF allows user to disable this function or to open new windows in new tabs.
    If you use FF for a while I think you saw a yellow message saying that FF blocks the popup window.
    But you can try to open new window as a reaction on some user action (for example in onclick event).
     
    VladimirS, Oct 24, 2009 IP