Pop up window (resized)

Discussion in 'HTML & Website Design' started by 8everything, Jun 6, 2007.

  1. #1
    I have quite a few variations of the code, but which code do you recommend for resizing pop ups? (ex: you click on a link and a new screen at a set width and height pops up).

    Thanks :)
     
    8everything, Jun 6, 2007 IP
  2. mulbane

    mulbane Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    http://www.codeave.com/javascript/code.asp?u_log=7065
     
    mulbane, Jun 6, 2007 IP
  3. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #3
    That works but some browsers prevent resizing of the window.
    I would use:
    window.open('http://example.com', '', 'width=600, height=300');
    Code (markup):
    But then again, window.open is not very elegant either... what is it for? A "div" layer "on top" of the page might be a better option.
     
    krt, Jun 6, 2007 IP