Reputation: 5125
Hi I want to disable the resizing the html web page by the user. How to do that I want to disable the resize button and manual resizing by dragging. pls help
Upvotes: 2
Views: 17816
Reputation: 61727
If you mean to stop the page shrinking and expanding in sympathy with browser window size, then use fixed width elements as supposed to relative (%)
Upvotes: 0
Reputation: 536399
You can't, thank God.
When you open a new popup you can request it be unresizable using the feature resizable
:
window.open('something.html', '_blank', 'resizable=no');
however modern browsers may ignore your request as it is considered egregiously user-hostile.
Use liquid layout to make your page respond flexibly to changes in window size, rather than attempting to set it in concrete. The web is inherently a variable-size medium, and mobile browser users get no input in how large their screen is anyway.
Upvotes: 9
Reputation: 7374
Pardon? Are you talking about resizing the browser window? If that's the case then you can't do this in HTML, or JavaScript as it would be a security risk allow web pages to control browsers behaviour.
If you want to get rid of scroll bars you can set the body tag to 'overflow: hidden' in CSS?
Upvotes: 2