Resizing page on load with javascript -
<script> function resize(){ mywindow.resizeto(600, 500); mywindow.focus(); } </script> </script> <style> canvas{ border: 1px solid black; } </style> </head> <body onload="resize()">
why not working? when add alert function works, resizing, please :)
browsers place lots of restrictions on resizeto
; here's firefox's list.
fundamentally, if code didn't open window, or it's tab not window of own, can't resize it. can resize if opened window.open
providing third argument (dimensions, features, etc.) , browser created new window (rather tab).
Comments
Post a Comment