Click here to get back home

How to define a HTML page not allow scroll bars and resize?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How to define a HTML page not allow scroll bars and resize? RC 07-26-2006
Posted by RC on July 26, 2006, 3:30 pm
Please log in for more thread options


I know how to do this in JavaScript by

window.open("newFile.html",
"newTarget",
"scrollbars=no,resizable=0,width=200,height=200");

The browser will open a new window size 200x200, not allow resize and
no auto horizontal, vertical scrolling bars.

I am wonder can I do the similar inside a HTML file like

<html><head>
<meta pageSize=200x200, resize=no, scrollbars=no />
</head>
<body>
...
</body></html>

Can I do that?

Or do in CSS
html { height: 200; width: 200;
overflow-y: hidden; overflow-x: hidden; }

But how can you in CSS out side of the html tag?
Because the <style> tag is between the html open/close tags.

Any idea?

Thank Q very much in advance!

Posted by Harlan Messinger on July 26, 2006, 3:35 pm
Please log in for more thread options


RC wrote:
> I know how to do this in JavaScript by
>
> window.open("newFile.html",
> "newTarget",
> "scrollbars=no,resizable=0,width=200,height=200");
>
> The browser will open a new window size 200x200, not allow resize and
> no auto horizontal, vertical scrolling bars.
>
> I am wonder can I do the similar inside a HTML file like
>
> <html><head>
> <meta pageSize=200x200, resize=no, scrollbars=no />
> </head>
> <body>
> ...
> </body></html>
>
> Can I do that?
>
> Or do in CSS
> html { height: 200; width: 200;
> overflow-y: hidden; overflow-x: hidden; }
>
> But how can you in CSS out side of the html tag?
> Because the <style> tag is between the html open/close tags.

It's the user's business, not yours, how big he wants or needs his
window to be. One of the most obnoxious things I've come across on the
web is a page that suddenly makes my browser open full-screen, as though
the site owner has any business whatsoever controlling the layout of my
computer screen. This is right up there with playing unwanted music.

Posted by PTM on July 26, 2006, 3:54 pm
Please log in for more thread options


> RC wrote:
>> I know how to do this in JavaScript by
>>
>> window.open("newFile.html",
>> "newTarget",
>> "scrollbars=no,resizable=0,width=200,height=200");
>>
>> The browser will open a new window size 200x200, not allow resize and
>> no auto horizontal, vertical scrolling bars.
>>
>> I am wonder can I do the similar inside a HTML file like
>>
>> <html><head>
>> <meta pageSize=200x200, resize=no, scrollbars=no />
>> </head>
>> <body>
>> ...
>> </body></html>
>>
>> Can I do that?
>>
>> Or do in CSS
>> html { height: 200; width: 200;
>> overflow-y: hidden; overflow-x: hidden; }
>>
>> But how can you in CSS out side of the html tag?
>> Because the <style> tag is between the html open/close tags.
>
> It's the user's business, not yours, how big he wants or needs his window
> to be. One of the most obnoxious things I've come across on the web is a
> page that suddenly makes my browser open full-screen, as though the site
> owner has any business whatsoever controlling the layout of my computer
> screen. This is right up there with playing unwanted music.

That's not always true. Often users get frustrated or annoyed by windows
that are far too big or small for the content. Sometimes it's preferable
(user wise) for the window size to be dictated by the developer.
Specifically in the case of corporate web apps for example, not all html/css
questions relate to internet sites.

Back to the initial question.
Html is used primarily for the content of a page to be displayed after the
holding window is open. CSS is for layout again once the window is open.
Essentially what you are trying to do is auto resize a window once it's been
opened and while it's loading the page code.
Html and css don't have the tags required for resizing, while meta tags are
fairly loose and not all work cross browser.
JavaScript or php/asp is definitely the best way to go.

Hope this helps,

Phil



Posted by Harlan Messinger on July 26, 2006, 4:16 pm
Please log in for more thread options


PTM wrote:
>> RC wrote:
>>> I know how to do this in JavaScript by
>>>
>>> window.open("newFile.html",
>>> "newTarget",
>>> "scrollbars=no,resizable=0,width=200,height=200");
>>>
>>> The browser will open a new window size 200x200, not allow resize and
>>> no auto horizontal, vertical scrolling bars.
>>>
>>> I am wonder can I do the similar inside a HTML file like
>>>
>>> <html><head>
>>> <meta pageSize=200x200, resize=no, scrollbars=no />
>>> </head>
>>> <body>
>>> ...
>>> </body></html>
>>>
>>> Can I do that?
>>>
>>> Or do in CSS
>>> html { height: 200; width: 200;
>>> overflow-y: hidden; overflow-x: hidden; }
>>>
>>> But how can you in CSS out side of the html tag?
>>> Because the <style> tag is between the html open/close tags.
>> It's the user's business, not yours, how big he wants or needs his window
>> to be. One of the most obnoxious things I've come across on the web is a
>> page that suddenly makes my browser open full-screen, as though the site
>> owner has any business whatsoever controlling the layout of my computer
>> screen. This is right up there with playing unwanted music.
>
> That's not always true. Often users get frustrated or annoyed by windows
> that are far too big or small for the content. Sometimes it's preferable
> (user wise) for the window size to be dictated by the developer.

The preferable solution is for the developer to stop annoying the users
by designing pages that only work with the browser set to a particular size.

> Specifically in the case of corporate web apps for example, not all html/css
> questions relate to internet sites.

The ones that don't are off-topic in comp.infosystems.www.*.

> Back to the initial question.
> Html is used primarily for the content of a page to be displayed after the
> holding window is open. CSS is for layout again once the window is open.
> Essentially what you are trying to do is auto resize a window once it's been
> opened and while it's loading the page code.
> Html and css don't have the tags required for resizing, while meta tags are
> fairly loose and not all work cross browser.
> JavaScript or php/asp is definitely the best way to go.

PHP and ASP have nothing to do with it. The only way to resize the
window is with client-side code, and the ability to send such code to
the client is independent of the presence or absence of any particular
server-side programming technology .

Posted by PTM on July 26, 2006, 6:50 pm
Please log in for more thread options


> PTM wrote:
>>> RC wrote:
>>>> I know how to do this in JavaScript by
>>>>
>>>> window.open("newFile.html",
>>>> "newTarget",
>>>> "scrollbars=no,resizable=0,width=200,height=200");
>>>>
>>>> The browser will open a new window size 200x200, not allow resize and
>>>> no auto horizontal, vertical scrolling bars.
>>>>
>>>> I am wonder can I do the similar inside a HTML file like
>>>>
>>>> <html><head>
>>>> <meta pageSize=200x200, resize=no, scrollbars=no />
>>>> </head>
>>>> <body>
>>>> ...
>>>> </body></html>
>>>>
>>>> Can I do that?
>>>>
>>>> Or do in CSS
>>>> html { height: 200; width: 200;
>>>> overflow-y: hidden; overflow-x: hidden; }
>>>>
>>>> But how can you in CSS out side of the html tag?
>>>> Because the <style> tag is between the html open/close tags.
>>> It's the user's business, not yours, how big he wants or needs his
>>> window to be. One of the most obnoxious things I've come across on the
>>> web is a page that suddenly makes my browser open full-screen, as though
>>> the site owner has any business whatsoever controlling the layout of my
>>> computer screen. This is right up there with playing unwanted music.
>>
>> That's not always true. Often users get frustrated or annoyed by windows
>> that are far too big or small for the content. Sometimes it's preferable
>> (user wise) for the window size to be dictated by the developer.
>
> The preferable solution is for the developer to stop annoying the users by
> designing pages that only work with the browser set to a particular size.
>
>> Specifically in the case of corporate web apps for example, not all
>> html/css questions relate to internet sites.
>
> The ones that don't are off-topic in comp.infosystems.www.*.
>
>> Back to the initial question.
>> Html is used primarily for the content of a page to be displayed after
>> the holding window is open. CSS is for layout again once the window is
>> open.
>> Essentially what you are trying to do is auto resize a window once it's
>> been opened and while it's loading the page code.
>> Html and css don't have the tags required for resizing, while meta tags
>> are fairly loose and not all work cross browser.
>> JavaScript or php/asp is definitely the best way to go.
>
> PHP and ASP have nothing to do with it. The only way to resize the window
> is with client-side code, and the ability to send such code to the client
> is independent of the presence or absence of any particular server-side
> programming technology .

And here was me thinking that in a newsgroup you asked a question in order
to find out some information, not to get an agitated response as to why you
shouldn't do what you want to.
I must apologise and remember to be more unhelpful in future, lol.



Similar ThreadsPosted
Frameset -> Page -> IFrame -> Frameset ...issue with scroll bars (Two issues) April 4, 2008, 6:45 pm
How to align elements and define resize behaviour? October 24, 2005, 4:02 pm
Only Vertical Scroll bar no horizontal bars August 26, 2005, 3:44 am
How to define links (css?) for just one part of a html page? October 19, 2005, 8:43 am
Material that does no scroll in web page January 10, 2008, 9:50 pm
CSS Table Resize January 24, 2007, 7:09 am
Need help creating a "Click absolutely ANYWHERE on this page" link for an HTML page with no content February 7, 2007, 5:40 pm
What makes a textArea resize itself December 23, 2004, 11:40 am
What makes a textArea resize itself January 2, 2005, 8:14 pm
Grammer teachers - a html page or an html page September 27, 2004, 10:53 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap