how to make a 200x200 window

Discussion in 'HTML & Website Design' started by wacamoi, Nov 20, 2008.

  1. #1
    I need the html code to create a 200x200 new window as a pop up for help note.

    Thanks.
     
    wacamoi, Nov 20, 2008 IP
  2. BrandonGregory

    BrandonGregory Peon

    Messages:
    28
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try this:

    <a href="#" onclick="window.open ('yourURL','windowName','menubar=0,resizable=0,location=0,scrollbars=0,status=0,width=200,height=200'); return false;">Link text</a>

    If you want it to have scrollbars, or a menu bar, or anything like that, change that variable to a 1 rather than a 0.
     
    BrandonGregory, Nov 20, 2008 IP
    wacamoi likes this.
  3. wacamoi

    wacamoi Peon

    Messages:
    810
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks BrandonGregory,

    +Rep added

    It works for IE but not for FF.
    Is any way for FF?

    Thanks.
     
    wacamoi, Nov 20, 2008 IP
  4. samrathacks

    samrathacks Active Member

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #4
    Thanks BrandonGregory.. Even I was also looking for something like this... Is there any other method apart from this?

    How easy is it to use Ajax for these kind of work..??
     
    samrathacks, Nov 21, 2008 IP
  5. elias_sorensen

    elias_sorensen Well-Known Member

    Messages:
    852
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    110
    #5
    Try to use:
    <a href="javascript:window.open ('yourURL','windowName','menubar=0,resizable=0,location=0,scrollbars=0,status=0,width=200,height=200'); return false;">Link text</a>

    You could also do it with a button with <input type="button" value="Open popup" onclick="window.open ('yourURL','windowName','menubar=0,resizable=0,location=0,scrollbars=0,status=0,width=200,height=200');" />

    samrathacks:
    You can't use AJAX for opening windows. AJAX is just like an extension to javascript. Asynchrous Javascript And Xml.
    AJAX is simply used when making remote calls to other files etc.
     
    elias_sorensen, Nov 21, 2008 IP