simple javascript question ?

Discussion in 'JavaScript' started by A.G, Feb 9, 2009.

  1. #1
    Hello,

    I have this little code
    window.open("http://google.com", "_blank", "location=1,status=1,scrollbars=1,resizable=1,menubar=1,toolbar=1,width=1000,height=1000");

    how can I set the width and the height to maximum , I mean the new popup windows must take the whole size of screen , how can I do that ?
     
    A.G, Feb 9, 2009 IP
  2. ceban

    ceban Peon

    Messages:
    21
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <a href="#" onclick='window.open ("http://google.com","mywindow","menubar=1,resizable=1,width=" + screen.availWidth + ",height=" + screen.availHeight +"screenX=0,screenY=0,top=0,left=0"); '>Test</a>
    HTML:
     
    ceban, Feb 9, 2009 IP
    A.G likes this.
  3. A.G

    A.G Well-Known Member

    Messages:
    2,510
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    150
    #3
    thank you +Rep Up
     
    A.G, Feb 9, 2009 IP