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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set browser window size 2

Status
Not open for further replies.

fizzak

MIS
Feb 6, 2003
331
US
I'm full of questions today!

I would like my site to open at a set size, thus resetting the users window to 640x480 or whatever I set. I've seen some scripts that open full screen. I know very little about java but I can back-engineer it pretty well. Is it possible to edit those? Or is this a whole different thing?
I've done quite a bit of searching through the java sites to find this but no luck.


Thanks
 
You will have more luck if you look in the javascript sites and forums... Javascript is a scripting language you can use to control a browser... Java is a programming language that you can use to write programs (loosely speaking).

The approach is to set an onload event to the index.html page, and once it has loaded, force the browser to resize to the desired dimension (take into consideration the scroll bars and tickers etc before you decide on this width and height).

Here is a suggestion:

Code:
<body onload="window.resizeTo(640,480)">

I'm sure there are other techniques that people use.

Jeff
 
fizzak,

See thread215-794066 for a discussion on this topic currently going on in another forum.

-Ron

We all play from the same deck of cards, it's how we play the hand we are dealt which makes us who we are. -Me

murof siht edisni kcuts m'I - PLEH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top