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

Forcing the web browser to have a minimum size?

Status
Not open for further replies.

J741

Technical User
Jul 3, 2001
528
CA
Does anyone know if it is possible to have the web browser enforce a minimum windows size?

I would like to make sure (as much as possible) that the end-user can not shrink my page to below 100px by 50px.

I have tried to use some javascript to read the window size parameters and change them to the minimum if they fall below the minimum, but using the onResize command in the BODY tag results in a large number of calls to my javascript function (instead of just calling it once when the resize is complete), which is very undesirable as it creates instability.

- James.

My memory is not as good as it should be, and neither is my memory.

I have forgotten more than I can remember
 
Using onresize should only call the attached function when the window is resized. Perhaps if you posted your code we might be able to see what's going wrong.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
[tt]min-width[/tt] and [tt]min-height[/tt] are the attributes I would look into. They don't really work in IE, but usually when there are no forms on the page, you can surpass that problem via expressions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top