Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Javascript onLoad resize screen
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedJavascript onLoad resize screen

 Post Reply Post Reply
Author
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Direct Link To This Post Topic: Javascript onLoad resize screen
    Posted: 11 November 2004 at 8:26pm

Hi all,

I've been trying to figure out a script that will resize the content area of the window to a specific width and height when the page loads.

I've tried onload="resizeTo(750,450);" but that resizes the whole browser window... i need the size of the content area to be 750x450.

I'm pretty sure that you can use window.innerHeight and window.innerWidth to do the trick, but i can't seem to figure it out. anyone got suggestions?

Thanks

Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Direct Link To This Post Posted: 12 November 2004 at 10:27am
Well, I found out that innerHeight and innerWidth work only for Netscape...
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Direct Link To This Post Posted: 12 November 2004 at 10:55am
Why not just place your content inside of a table that is 750x450 in size??
Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Direct Link To This Post Posted: 12 November 2004 at 1:40pm

lol...

That's not quite what i was needing. I needed the page to open from a shortcut on the desktop, and it needed to open to where the content area in the browser window was of a specific height and width. Every solution i have found so far has been a "Netscape only" solution.

Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Direct Link To This Post Posted: 12 November 2004 at 7:10pm

im not sure if this is any good ,

but i use   window.onresize = new Function("location.reload();");

not sure if thats any help, thats for IE

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.