SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: window sizing

  1. #1
    SitePoint Enthusiast
    Join Date
    May 2001
    Location
    Ga
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    javascript newbie...need help with size, address bar and more

    Ok I have a page of images. This page when an image is click sends them to a blank page/new page with the image in full size no images will go over 500 x 500 pixels. I already have the php side of things setup to where its an actual htm page with the image source coming from the previous page. Regardless on this new page........what is the javascript code to put in the header to make the window a certain size? Thanks
    Last edited by fusioncom; Jan 20, 2004 at 21:32.
    Cant get away from this computer

  2. #2
    SitePoint Enthusiast
    Join Date
    May 2001
    Location
    Ga
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok I got the sizing figured out.

    Now
    As noted this is a static page..not coming from another link really.
    So I have added...
    <script>
    self.resizeTo(600,600);
    window.value(location=no);
    </script>
    But that doesnt work to well...it resizes the window..but the address bar is still there, I would like to disable everything including scroll, menu and toolbar. Thanks for you help
    Cant get away from this computer

  3. #3
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would like to disable everything including scroll, menu and toolbar.
    You have to do that when the window is opened from a "window.open()" call.

    This example might be helpful.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •