faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

50 of 55 people (91%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

Is it possible to resize a browser window to specifed dimensions with an onLoad command? (f so, how?

Apr 7th, 2008 23:19
ha mo, Jean-Bernard Valentaten, CC Ollins,


Try this:
<script language="JavaScript">
  var myWidth = 400;
  var myHeight = 300;
</script>
<body .... onLoad="window.resizeTo(myWidth, myHeight);">
HTH,
Jean
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com