<html> <head> <script type="text/javascript"> function resizeWindow(){ window.resizeBy(-100,-100) } </script> </head> <body> <form> <input type="button" onclick="resizeWindow()" value="Resize window"> </form> </body> </html>