specifying web browser window size

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default 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 lingo? Or even is this something I can be adjusting paramaters in Dreamweaver when I create the html file?

    Thanking in advance!
    Richard




    Marblehead Johnson webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. "open browser window" size
      I am updating a site that uses pop-ups for definitions throughout the site. This is a medical site, so the pop-up definitions are essential. The...
    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. 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...
    4. Window Size/ alternative window size
      I have created a site using a 1024x768 screen size, as this is the deafault for my moniter. Is there a quick way of changing the size to 800x600,...
    5. 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...
  3. #2

    Default Re: specifying web browser window size

    You would need to do that with java-scripting written into your html
    (webpage).

    You can specify window size, scrollbars, resize-able, titlebar, etc...

    Michael Hamstra


    "Marblehead Johnson" <webforumsuser@macromedia.com> wrote in message
    news:bgmq9e$4mi$1@forums.macromedia.com...
    > 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
    lingo? Or even is this something I can be adjusting paramaters in
    Dreamweaver when I create the html file?
    >
    > Thanking in advance!
    > Richard
    >
    >
    >



    Michael Hamstra Guest

  4. #3

    Default Re: specifying web browser window size

    "Marblehead Johnson" <webforumsuser@macromedia.com> wrote in message
    news:bgmq9e$4mi$1@forums.macromedia.com...
    >
    > Can this be done? Need to open html file in web browser (easy enough) but
    > need the browser window to be a specific size.
    The JavaScript window.open function allows you to specify window size. The
    only way to call that from Lingo is like this:

    gotoNetPage( "javascript:void( window.open( 'mypage.html', 'popuptarget',
    'width=300,height=200' ) );" )

    I don't use DreamWeaver myself, but you should be able to get it to make a
    popup for you with the correct parameters, then you can copy the parameters
    for window.open from that (the last string is the complicated one, I've only
    included the width and height parameters for illustration, but there are a
    lot more possible options).

    Note that this isn't strictly the correct way to call JavaScript, so you may
    find that it doesn't work in every browser. However, there is no other
    alternative from Shockwave. You should also bear in mind that if the user
    has javascript disabled (about 10% of users) then absolutely nothing will
    happen.

    - Robert


    Robert Tweed Guest

  5. #4

    Default Re: specifying web browser window size

    Yes, you can add this when you create the html file:

    <script language="JavaScript">
    <!--
    window.resizeTo(320,320);
    -->
    </script>

    Just put it in the <head>..</head> section.




    --
    Bertil Flink
    Creative Media



    "Marblehead Johnson" <webforumsuser@macromedia.com> skrev i meddelandet
    news:bgmq9e$4mi$1@forums.macromedia.com...
    > 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
    lingo? Or even is this something I can be adjusting paramaters in
    Dreamweaver when I create the html file?
    >
    > Thanking in advance!
    > Richard
    >
    >
    >

    Bertil Flink Guest

  6. #5

    Default Re: specifying web browser window size

    "Bertil Flink" <bertil@creativemedia.se> wrote in message
    news:bgnqqd$ntf$1@forums.macromedia.com...
    > Yes, you can add this when you create the html file:
    >
    > <script language="JavaScript">
    > <!--
    > window.resizeTo(320,320);
    > -->
    > </script>
    That's a good point, I always overlook that for some reason. There are a
    couple of things to watch though:

    Firstly, you can't change the window style like you can with window.open
    (removing menus, etc.). Also, any other windows that are opened from then on
    will also be that size (if you are using IE, anyway). Personally, I find
    that *extremely* annoying (as do a lot of other people, especially if they
    can't figure out how to rectify it). Finally, you can't later decide to
    close the popup with the javascript "window.close()" without a security
    warning being shown (you can if the window was opened with window.open).

    However, it does get around the problems associated with window.open that I
    mentioned in my other post.

    - Robert


    Robert Tweed Guest

  7. #6

    Default Re: specifying web browser window size

    Brilliant! Thanks for your input guys, big help.

    Cheers,
    Richard



    Marblehead Johnson webforumsuser@macromedia.com 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