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



David E. Ross 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.

Any idea?

Thank Q very much in advance!

What I understand from your question is that you want to launch a new
window for a Web page with a fixed window size and no scroll bars.
Is that correct?

If so, note the following. I use SeaMonkey (but Firefox and Camino
have the same or similar capabilities). I use tabbed browsing. If a
link on a Web page attempts to launch a new window, it merely
launches a new tab within my existing window. Since it is my
existing window, the window size does not change; and the scroll bars
remain. Further, the menu bar, all my toolbars, and any status or
other display zones remain operative.

You will be going through a lot of effort to seize control of my browser, but my browser will defeat that effort and leave me in
control.

I've also noticed certain high-profile sites that have attempted to do
this, but have done it badly. One example is my bank, who have used a
sized pop-up without scrollbars (or address-bar) as part of their online
banking system. For some perverse reason, it seems that the use of this
technique is particularly common with forms that are 'important'.

The form works fine in the browser that they presume me to be using (no
prizes for guessing); but the layout is b0rked in the browser that I am
really using - a better and more secure one - and the form is thereby
rendered unusable. This layout problem would just be an inconvenience,
but for the fact that they've seen fit to deprive me of control of my
browser, by removing the scrollbars. If they had been sufficiently
far-sighted to at least leave me with a URL, I could have pasted it into
a window thaat I can size and scroll; but like their ill-considered
pop-up, their minds must have been too narrow for that to occur to them.

I actually have two bank accounts, and am in the process of gradually
moving my business from one to another. Of course, this pop-up isn't
really the reason for migration; it's just another indicator of a crap
company.
--
Jack.
http://www.jackpot.uk.net/
.