How to Resize a Window in HTML

How to Resize a Window in HTML thumbnail
Resize a Window in HTML

Web page designers use a general, universal computer mark-up language called (HTML). Designers can define many different elements of a web page and how they are displayed on a user's screen as they browse the Internet. You can resize a window in HTML.

Instructions

    • 1

      Open your web publishing software program, and then open the file containing the web page to be modified.

    • 2

      Open the HTML code editing window of the file.

    • 3

      Locate the <head> element of the web page code.

    • 4

      Type the following code into the <head> element:
      <script>
      window.resizeTo("width", "height");
      </script>

    • 5

      Substitute in specific parameters of your choosing for "width" and "height" in the code above. Save your work, upload the page file as you usually would to your host server, and you are finished.

Tips & Warnings

  • By using the code above, you are specifying the width and height of the entire browser window. This includes the menu bar, the button bar and various toolbars.

  • Be careful and use the above HTML code sparingly, as most users have their browser window set to a size of their preference. Overuse this code, and you risk alienating those coming to your web page, and they may not return.

Related Searches:

References

Resources

  • Photo Credit http://www.racineweb.com/images/code_snip.gif

Comments

You May Also Like

Related Ads

Featured