www.webdeveloper.com
Results 1 to 2 of 2

Thread: ResizeBrowserBy() not working

Hybrid View

  1. #1
    Join Date
    Apr 2013
    Posts
    36

    ResizeBrowserBy() not working

    <!DOCTYPE html>
    <html>
    <head>





    <script type="text/javascript">
    function ResizeBrowserBy() {
    window.resizeBy(-50, -50);
    }
    function ResizeBrowserTo() {
    window.resizeTo(600, 400);
    }
    </script>
    </head>
    <body>
    <button onclick="ResizeBrowserBy();">Make the browser window smaller!</button>
    <br />
    <button onclick="ResizeBrowserTo();">Resize the browser window to 600px * 400px</button>
    </body>


    </html>

    http://jsbin.com/ezojoz/1/edit

  2. #2
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,633
    http://www.w3schools.com/jsref/met_win_resizeto.asp

    i hope everything's ok at least with alert()...
    xxx: Guess Buddhist riddle: "What is the sound of one hand clapping?"
    yyy: facepalm

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles