window.resizeTo() : Window Object : Window JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Window » Window Object »

 

window.resizeTo()









Syntax








window.resizeTo(numWidth, numHeight)



The resizeTo() method resizes the window.












<html>
    <head>
    <script language="JavaScript1.2">
    <!--
    function resizeWin(form){
      var myWidth = form.width.value;
      var myHeight = form.height.value;

      window.resizeTo(myWidth, myHeight);
    }
    -->
    </script>
    </head>
    <body>
    <form>
      <b>New Width:</b>
      <input type=TEXT name="width"><br>
      <b>New Height:</b>
      <input type=TEXT name="height"><br>
      <input type=BUTTON value="Resize Window" onClick="resizeWin(this.form)"></td>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Window
» Window Object