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!

Resizing the screen 1

Status
Not open for further replies.

Beesknees

Programmer
Feb 27, 2001
95
0
0
GB
Is there any way to resize everything in the browser window depending on the screen size using javascript? The documents we have are just basic html with a few tables and no frames.
 
window.moveTo(10, 10)
window.resizeTo(screen.width-20, screen.height-20)

not tested but should work. If I did a mistake or anyone knows a better way please correct me.

Hope this helps. Gary " Haran
 
Hi

I would change the following:

window.resizeTo(screen.width-10,screen.height-20)

to

window.resizeTo(screen.availWidth-20,screen.availHeight-20)

This takes into account the available screen width (i.e. excluding the windows taskbar) and not the full screen resolution.

Cheers,
Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top