• Nike free run 2 pink
  • Nike free 5.0 kids
  • Oakley sunglasses discount
  • CodeAve.com CodeAve.com - JavaScript - Misc
    ASP
    JavaScript
    ·Document Info
    ·Forms
    ·Images
    ·Miscellaneous
    ·Navigation
    ·Script Writers
    ·Contents
    ·What's New?
    CSS
    HTML
    Maps
    Links
    Mail List
    Search
    Sitemap


     

  • Retro 3 jordans
  • Jordan 13 retro
  • Nike free 5.0

  • Resize the Browser Window
  • Air jordan 11 low
  • New Balance 996
  • Ray ban vintage sunglasses
  • What is the size of the browser window that your page is being viewed at? You can control the initial size of a window and/or offer controls on to resize a window via a link. The following example will open initially with a width and height of 500 x 500. Links to JavaScript functions will enable you to resize the window to a number of different sizes including the maximum size that the client PC allows.
    View the Output
    Text View
    Print View
    Mail this Link
    Download the Code

    <html>
    <body bgcolor=
    "#FFFFFF">
    <title>
    CodeAve.com(Resize Window)</title>

    <script language
    ="JavaScript">
    <!--
    // This will resize the window when it is opened or
    // refresh/reload is clicked to a width and height of 500 x 500
    // with is placed first, height is placed second
    window.resizeTo(500,500)
    -->
    </script>

    When the window is opened or
    refresh/reload are clicked the window will size to 500 x 500


    <script language
    ="JavaScript">
    <!--
    // function to allow the changing of the window size by link
    // to a size of 400 x 300
    function resize_2_400x300()
    {
    window.resizeTo(400,300)
    }
    -->
    </script>

    <br>

    Click <a href="javascript:resize_2_400x300()">here</a> to resize
    the window to 400 x 300

    <script language="JavaScript">
    <!--
    // function to allow the changing of the window size by link
    // to a size of 800 x 600
    function resize_2_800x600()
    {
    window.resizeTo(800,600)
    }
    -->
    </script>

    <br>

    Click <a href="javascript:resize_2_800x600()">here</a> to resize
    the window to 800 x 600

    <script language="JavaScript">
    <!--
    // function to allow the changing of the window size by link
    // to the maximum local screen width and height
    function resize_2_local_settings()
    {
    window.resizeTo(screen.width,screen.height)
    }
    -->
    </script>

    <br>

    Click <a href="javascript:resize_2_local_settings()">here</a> to resize
    the window to the max local settings
    <script language="JavaScript">
    <!--
    document.write (screen.width + ' x ' + screen.height)
    -->
    </script>

    <script language="JavaScript">
    <!--
    // function to allow the changing of the window size by link
    // the width and height are passed as variables within the link
    function resize_2_link(x,y)
    {
    window.resizeTo(x,y)
    }
    -->
    </script>

    <br>

    Click <a href="javascript:resize_2_link('640','480')">here</a> to resize
    the window to varibles conatined within the link (640 x 480)

    </body>
    </html>

     

     

     



    ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
    Server Variables | Response Objects | Random Events | Miscellaneous
    HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
    JavaScript: Document Info | Forms | Images | Navigation | Script Writers
    CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
  • 2014 michael kors
  • air max women 2013
  • 2014 michael kors
  • air max 2014
  • oakley glasses
  • oakley glasses

  • Maps: Map Script Writers | Bing Maps | Google Maps
  • bottes fr
  • ugg boot
  • Privacy Statement

    CodeAve.com is hosted by MyHosting.com
    Donate Food Online with a Mouse Click at TheHungerSite.com
    Donate Land Online with a Mouse Click at TheRainForestSite.com
    © 1999 - 2017 CodeAve.com
    All Rights Reserved

    jordan 11 gamma Nike KD VI lebron 11 low