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

Resizing a Browser from within a frame 1

Status
Not open for further replies.

inta

Technical User
Aug 2, 2001
13
AU
Hello,

Is there a way to maximize a browser from within a frame?

I am looking for a solution that will work with both NS4 and above, and IE5 and above.

I am happy to use any appropriate method. I am currently maximizing the browser by loading a blank page first, resizing the browser, and then, redirecting to the main page which contains frames.

This is untidy and I am hoping there is a better way.

Thankyou for your assistance.
 
one word "top".

use top, that puts you in the world of the parent window (the one that contains the frames)

ex:

top.window.resizeTo(....)
or
top.resizeTo(....)

not sure which theEclipse
eclipse_web@hotmail.com
**\\||It was recently discovered that research causes cancer in rats||//**
 
yeah, full example:

in one of ur frames:
onload=function(){
top.moveTo(0,0)
top.resizeTo(screen.availWidth,screen.availHeight)
} Victor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top