Javscript to hide status bar

P

Pandora Law

This probably belongs more correctly in an IE5 newsgroup since it relates to
use on a machine that has IE 5.00.3314, but I can't find a suitable group
.... and I cant locate an answer on Google groups.

My question is this ... if a window has been opened using a function like
this

function Graphic(GraphicURL) { NewWindow = window.open ( GraphicURL,
"DisplayWindow",
"toolbar=no,location=no,directories=no,status=no,
scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=400")
}

is there any easy way I can bring back the address bar and status bar. I can
hit F-11, which shows some of this info, but it does strange things to the
screen. What I'd really like to do is just defeat the restrictions. Why?
Because when I get my bank balance, my bank insists on a dumb size of
screen, and also hides whether the login is encrypted or not!! Not to
mention other sites that do dumber things.

Suggestion any body?

PL
 
R

Richard Cornford

Pandora Law wrote:
is there any easy way I can bring back the address bar and
status bar. I can hit F-11, which shows some of this info,...
<snip>

Try:- Ctrl N

- for a new window showing the same URL as the original, but with normal
default chrome.

Richard.
 
R

Richard Cornford

Richard said:
Pandora Law wrote:

<snip>

Try:- Ctrl N

- for a new window showing the same URL as the original,
but with normal default chrome.

I have just noticed the end of your post where you mention your desire
to do this while accessing your bank account details so I should include
a word of warning. There are an unfortunate number of web application
developers who have no appreciation of the capabilities of web browsers
or the true nature of HTTP. They apply a desktop application mentality
that isn't appropriate to HTTP applications. They end up writeing
applications that cannot cope with multiple browser windows interacting
with the same user session, cannot cope with page refreshes, or the use
of the back/forward buttons, and so on.

And when they realise that their applications behave somewhere between
badly and catastrophically in the face of these types of actions on the
part of the user, instead of re-doing the server side code in the way it
should have been done in the first place, they look around for
client-side hacks that they can use to mitigate the problem.

Often they come here looking for those hacks, and we tell them that
anything done with javascript is futile to exactly the degree that
preventing any particular user action is important. Because ultimately
the user is in a position to override anything they attempt on the
client so whatever the server-side problem the client-side hack was
supposed to prevent, it will eventually happen anyway.

Opening windows without the toolbar is one such hack. It can be
motivated by a desire to prevent the user form having access to the
refresh and back/forward/history controls. It is a naive action that
fails to recognise that there are many ways to perform such actions in a
web browser and they cannot all be effectively prevented (as Ctrl N in
IE browsers demonstrates).

If you where doing this on some random shopping site then it wouldn't
necessarily matter to you much if your actions crashed the server or
corrupted the database, ultimately it would be the web site's problem,
and serve them right for not designing a back-end robust enough for use
over HTTP with a web browser client. But when it is your bank, in the
process of handling your money form your account, accidentally
stuffing-up their server might have directly negative repercussions.

Richard.
 
P

Pandora Law

Many thanks for the information. Even more so for the detail. Hiding the
address seems mildly silly to me. Hiding whether the SSL is engaged or not
is downright idiotic. The website in question is Unicredit on a com.au
domain. Even the pop-up login window doesn't show the encryption status,
although the title bar *briefly* flashes https. The truly amazing thing
about the site is that it displays the Australian Best Practice logo. Sadly,
if you check out what's required to display the logo, it isn't very much at
all.

Thanks alot for the help again ... and I'm pleased to report that the ctrl-n
works. Just leave the original window alone after that.

PL.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top