Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. change width and height of internet explorer

change width and height of internet explorer

Scheduled Pinned Locked Moved Web Development
tutorialhtml
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    garga1
    wrote on last edited by
    #1

    Can anybody tell me how to change the width and height of internet explorer when html page loads(Example:150px * 100 px) . i hv written the foll. codes inside body tag style="max-width: 133px;max-height: 20px" but it is not working. Thanks

    T 1 Reply Last reply
    0
    • G garga1

      Can anybody tell me how to change the width and height of internet explorer when html page loads(Example:150px * 100 px) . i hv written the foll. codes inside body tag style="max-width: 133px;max-height: 20px" but it is not working. Thanks

      T Offline
      T Offline
      tonymathewt
      wrote on last edited by
      #2

      function resizeWindow()
      {
      var screen_x = 150;
      var screen_y = 100;
      window.resizeTo(screen_x, screen_y);
      window.moveTo(0,0);
      }

      just add the above javascript function inside script tags and call the function inside body tag:

      <body onload="javascript:resizeWindow()" >

      modified on Wednesday, May 21, 2008 5:33 AM

      G 1 Reply Last reply
      0
      • T tonymathewt

        function resizeWindow()
        {
        var screen_x = 150;
        var screen_y = 100;
        window.resizeTo(screen_x, screen_y);
        window.moveTo(0,0);
        }

        just add the above javascript function inside script tags and call the function inside body tag:

        <body onload="javascript:resizeWindow()" >

        modified on Wednesday, May 21, 2008 5:33 AM

        G Offline
        G Offline
        garga1
        wrote on last edited by
        #3

        Thank you sir.. This code works fine

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups