javascript - how do I change window size? -


i'm trying change size of window onload. doesn't seem work.

here setup:

<script>  var w=800; var h=600;  function changescreensize(w,h)  {    window.resizeto(w,h)  }  </script>  <body onload="changescreensize(w,h)" style="background-image:url(untitled.jpg)"> 

this solution php.org (somewhere) - works windows dom, mac cracks. hide menubar , favs, percent (width,height) gets complicated: http://css-tricks.com/snippets/html/top-bottom-halves-layout/

    <script>     function changescreensize(w,h)     {     window.resizeto( w,h )     }     </script>     </head>     <body onload="changescreensize(1200,260)"> 

http://ysdn2005-w11.wikispaces.com/change+browser+window+size+upon+loading yep, page details method. script above works.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -