473,725 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

RC
I know how to do this in JavaScript by

window.open("ne wFile.html",
"newTarget" ,
"scrollbars=no, resizable=0,wid th=200,height=2 00");

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=200x20 0, 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 <styletag is between the html open/close tags.

Any idea?

Thank Q very much in advance!
Jul 26 '06 #1
69 13476
RC wrote:
I know how to do this in JavaScript by

window.open("ne wFile.html",
"newTarget" ,
"scrollbars=no, resizable=0,wid th=200,height=2 00");

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=200x20 0, 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 <styletag 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.
Jul 26 '06 #2
RC <ra**********@n ospam.noaa.govw rote:
I know how to do this in JavaScript by

window.open("ne wFile.html",
"newTarget" ,
"scrollbars=no, resizable=0,wid th=200,height=2 00");

The browser will open a new window size 200x200, not allow resize and
no auto horizontal, vertical scrolling bars.
Maybe. Maybe not. That depends on the browser, and on the browser settings.

My browser allows me to resize and scroll all windows. And window.open()
may or may not open a new window/tab, depending on which site I'm visiting
and the context in which window.open() is used.

And of course, in some browsing environments, concepts like "window" or
"pixel" may be irrelevant.
--
Darin McGrew, mc****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/

The box said, "Requires Windows 98 or better." So I installed Linux.
Jul 26 '06 #3
On 2006-07-26, RC wrote:
I know how to do this in JavaScript by

window.open("ne wFile.html",
"newTarget" ,
"scrollbars=no, resizable=0,wid th=200,height=2 00");

The browser will open a new window size 200x200, not allow resize and
no auto horizontal, vertical scrolling bars.
Not in my browser, it won't!

If I want a page to open in a new window (or a new tab), *I* will
tell my browser to do that. Any page that is rude enough to try to
tell me what I want does not get very far.
I am wonder can I do the similar inside a HTML file like

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

Can I do that?
Heaven forbid!
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 <styletag is between the html open/close tags.

Any idea?

Thank Q very much in advance!

--
Chris F.A. Johnson, author <http://cfaj.freeshell. org>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence
Jul 26 '06 #4
PTM
"Harlan Messinger" <hm************ *******@comcast .netwrote in message
news:4i******** ****@individual .net...
RC wrote:
>I know how to do this in JavaScript by

window.open("n ewFile.html",
"newTarget" ,
"scrollbars=no, resizable=0,wid th=200,height=2 00");

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=200x20 0, 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 <styletag 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
Jul 26 '06 #5
PTM wrote:
"Harlan Messinger" <hm************ *******@comcast .netwrote in message
news:4i******** ****@individual .net...
>RC wrote:
>>I know how to do this in JavaScript by

window.open(" newFile.html",
"newTarget" ,
"scrollbars=no, resizable=0,wid th=200,height=2 00");

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=200x20 0, 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 <styletag 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.infosystem s.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 .
Jul 26 '06 #6
RC
OK, I just found other way to fooling the browser by used frames

<frameset rows="10%,*">
<frame src="clicklink. html" name="content" scrolling="no" noresize>
<frame name="display" scrolling="no" noresize>
</frameset>

So in my clicklink.html

<a href="newFile.h tml" target="display ">New File</a>

Now, when an user click the link "New File", they can only see
what I allow them to see, no scrolling bars, no resize frames.

Yes, agree, use JavaScript or PHP/JSP/ASP may be better.
Jul 26 '06 #7
PTM
"Harlan Messinger" <hm************ *******@comcast .netwrote in message
news:4i******** ****@individual .net...
PTM wrote:
>"Harlan Messinger" <hm************ *******@comcast .netwrote in message
news:4i******* *****@individua l.net...
>>RC wrote:
I know how to do this in JavaScript by

window.open( "newFile.ht ml",
"newTarget" ,
"scrollbars=no, resizable=0,wid th=200,height=2 00");

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><hea d>
<meta pageSize=200x20 0, 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 <styletag 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.infosystem s.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.
Jul 26 '06 #8
RC wrote:
OK, I just found other way to fooling the browser by used frames

<frameset rows="10%,*">
<frame src="clicklink. html" name="content" scrolling="no" noresize>
<frame name="display" scrolling="no" noresize>
</frameset>

So in my clicklink.html

<a href="newFile.h tml" target="display ">New File</a>

Now, when an user click the link "New File", they can only see
what I allow them to see, no scrolling bars, no resize frames.
Unless they decide to open the frame in a new window/tab themselves.

The point is not so much that you should *never* try to control the
size of windows or frames, but to be aware that any attempt to do so
will likely fail a good percentage of the time and that it may make
your site dysfunctional for some users.
Yes, agree, use JavaScript or PHP/JSP/ASP may be better.
JavaScript is (very) unreliable as noted, PHP/JSP/ASP are irrelevant.
--
Rob

Jul 27 '06 #9
Dan
PTM wrote:
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.
What about windows that are forced by the developer to be too small for
the content, and in which resizing and scrollbars have been disabled,
so that there's no way to see all of the content? I've run into that
sort of atrocity all too often. Developers who perpretrate these
crimes against humanity should be executed by firing squad.

--
Dan

Jul 27 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
8886
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8750
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9256
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9168
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9105
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8091
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6701
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4509
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3218
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.