Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fixed window size??

Status
Not open for further replies.

hassified

Technical User
Jun 25, 2002
43
0
0
US
I want to make a searchable catalog on CD that will autorun when Cd is installed, and I know how to do that. My question is, is there a way to have it open in a fixed window size?? EXAMPLE: 400x400

PS> Is .HTA file type the best way to save my work for this type of project??


Life Is Good.
HASSIFIED
 
Hey, I got the answer!!!!
I found this on some site(copy and pasted it to my project and forgot the site I got it from. SORRY.)
But here it is anyway.

Put this in your <head> section:

<script>function changeScreenSize(w,h){window.resizeTo(w,h )}</script>

Then put this within your <body> tag:

onload=&quot;changeScreenSize(500,300)&quot;

Just change the &quot;(500,300)&quot; to the size window you want.
This worked great, thanks to whoever runs the site I got this from.


Life Is Good.
HASSIFIED
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top