Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting the browser window size on load ?

 
Duncan Murray
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody know how I can set the size the window should be when it loads ?
I know it's possible from a <a href> click, but I want it to be a script on every page in my website when the page loads.
(IE Browsers only)
Thank you. Duncan
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Place in Head Tags
Remove the _ from on_load
<script>
function ReSizeIt(){
//window.moveTo(0,0);
window.resizeTo(300,200)
}
window.on_load=ReSizeIt;
window.onresize=ReSizeIt;
</script>
[ December 09, 2002: Message edited by: Eric Pascarello ]
 
Duncan Murray
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Eric.
I have put the script into the header, but it dosen't make any differnece !? Do I need to call the fumction in the <BODY> ?
Duncan.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did you remove the bar from on_load??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic