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 Chriss Miller 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
Joined
Jun 25, 2002
Messages
43
Location
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
 
If it's a web page, then the way to do it will be to resize the window in the onload event.

<body onload=&quot;window.moveto(0,0);window.resize(400,400);&quot;>

or something like that.

Cheers,


[monkey] Edward [monkey]

Like Lovecraft? Know Photoshop? Got time for the Unspeakable?
 
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