This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting the browser window size on load ?  RSS feed

 
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
Boost this thread!