control browser window size

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Re: control browser window size

    Yes, what you are wanting to do is easily done with JavaScript.

    However, like the majority of folks, I'd really appreciate it if you wouldn't try to take over my browser. It's considered very rude to try and force people to do things your way.

    A much better solution is a flexible design.

    --

    Dave
    -----------------------------------------------------------------
    If I were half as smart as people think I am...
    I'd be twice as smart as I was before I forgot everything.
    (Official victim of CRAFT Syndrome)
    David R. Wheeler Guest

  2. Similar Questions and Discussions

    1. Control the size of the window
      Is there a way, in Dreamweaver, to set the size of the window? Thanks, David
    2. Specifying html browser window size from Flash link
      I'm hoping someone knows how to do this -- I've been struggling with it for several days and just can't figure it out ... I want to set the...
    3. specifying web browser window size
      Can this be done? Need to open html file in web browser (easy enough) but need the browser window to be a specific size. Can this be done through...
    4. Safari - can't restrict the size of a new browser window
      I have a new browser window with a specified size. I've specified that I don't want scroll bars or a resizeable window. The new browser window looks...
    5. Control Browser size?
      Hi Can I control the size of the browser window using php or javascript? I know I can control pop ups, same sort of thing maybe? Thanks in...
  3. #2

    Default Re: control browser window size

    You can not control properties of a browser window that is already
    opened....like toolbar, status bar ect...

    This will resize your browser window to the intwidth and intheight you
    specify. just place it in the <head></head> tags

    <Script Language="javascript">
    <!-- Begin
    var intwidth;
    var intheight;
    intwidth=750;
    intheight=550;
    intwidth=parseInt(intwidth);
    intheight=parseInt(intheight);
    if(intwidth>0&&intheight>0) {window.resizeTo(intwidth,intheight,
    "toolbar=no,location=no,status=no,menubar=no,resiz able=no");
    }
    // End -->
    </script>





    "imostsiat22" <webforumsuser@macromedia.com> wrote in message
    news:be1j2p$i2p$1@forums.macromedia.com...
    > Is it possible to put something into my html code that will control the
    size of the browser window that it opens into? possibly something that will
    let me control all of the window properties. I know how to control a new
    window being opened using javascript but i want my index page to be a
    certain size.
    >
    > -thanks
    >
    >

    Just Looking Around is All Guest

  4. #3

    Default Re:control browser window size

    Hi,

    You can use:

    window.resizeTO(width,height)

    <script>
    var width=200;
    var height=300;
    window.resizeTo(width,height);
    </script>

    Regards,
    Dan.



    Check Out : [url]www.cftagstore.com[/url] for the latest and greatest Coldfusion custom tags and components!

    Built by developers, for developers!
    Dan-CFTagStore.com Guest

  5. #4

    Default Re: Re:control browser window size

    You can not adjust the properties of a window that is already open. fyi
    you control the scrollbars with
    scrollbars=No or Yes

    <Script Language="javascript">
    <!-- Begin
    var intwidth;
    var intheight;
    intwidth=750;
    intheight=550;
    intwidth=parseInt(intwidth);
    intheight=parseInt(intheight);
    if(intwidth>0&&intheight>0) {window.resizeTo(intwidth,intheight,
    "toolbar=no,location=no,scrollbars=no,status=no,me nubar=no,resizable=no");
    }
    // End -->
    </script>


    "yakumo" <webforumsuser@macromedia.com> wrote in message
    news:be408f$jcf$1@forums.macromedia.com...
    > <Script Language="javascript">
    > <!-- Begin
    > var intwidth;
    > var intheight;
    > intwidth=750;
    > intheight=550;
    > intwidth=parseInt(intwidth);
    > intheight=parseInt(intheight);
    > if(intwidth>0&&intheight>0) {window.resizeTo(intwidth,intheight,
    > "toolbar=no,location=no,status=no,menubar=no,resiz able=no");
    > }
    > // End -->
    > </script>
    >
    > Hi, how do you remove the scrollbars please, thanks:)
    >
    >

    Just Looking Around is All Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139