Re: OT Rant Re: How to make a link, using cgi.pm, that opens a new window
by bean (Monk) on Aug 21, 2003 at 06:07 UTC
|
While forcing the user to open a new browser window when s/he expects a link is amazingly annoying and a pet peeve of mine, there are at least two legitimate reasons for creating a new window. Both apply primarily to web applications: popup windows which act as dialogs (usually javascript instead of _target), and new windows the user expects, e.g. screens for printing that lack navigation elements, like printable reports (especially if they can take a long time to run). Web applications are a special case where the use of the back button can lead to user confusion and error, since the previous screens probably have out of date information on them. For this reason, users of web applications (especially when money is involved) should be trained/told not to use the back button - so if a screen doesn't have navigation, it has to be separate. The web application programmers often compound this problem by forcing a reload of the page - it only makes things worse because then hitting the back button can perform actions.
Here's an example - your're doing online banking, and you transfer money from one account to another. Then you click a link to show a printable screen of your account history, or maybe a receipt. That screen should be a new window, because you should never click the back button in the banking application (notice how they always have warnings about not using the back button after your perform a transaction?). If you did click the back button you could end up transfering the money again. That wouldn't happen if it were programmed correctly, but would you put money on those odds? The programmers probably did the forced reload thing so that you couldn't hit the back button twice and think the money hadn't been transferred. Or maybe it's just tradition, since IIRC that used to be (is?) the default for CGIs... | [reply] |
Re: OT Rant Re: How to make a link, using cgi.pm, that opens a new window
by The Mad Hatter (Priest) on Aug 20, 2003 at 21:57 UTC
|
it is the only one I can't shutt off in the browser.
Just to nit-pick, some browsers (such as Mozilla, Firebird, prolly Opera and Camino) do let you shut it off.
| [reply] |
|
|
Mozilla and all let you dissallow random html attributes? Never knew they could do that.
| [reply] |
|
|
Actually, I guess it is the tabbrowser extension; it lets you force new windows to open as new tabs instead. IIRC though, there was an option to force all new windows to open in the same window as well, but I couldn't find it with a quick glance thru the prefs...
| [reply] |
Re: OT Rant Re: How to make a link, using cgi.pm, that opens a new window
by menolly (Hermit) on Aug 20, 2003 at 22:03 UTC
|
Although this should be left to user discretion most of the time, there are some applications where it is necessary. For instance, to open an explanatory message which should be visible alongside the original page. | [reply] |
|
|
I'm confused about that. you mean a pop-up window? A small window which explains the larger window, which it now partially obscures?
If the explanation is small enough, it should go on the page it's explaining. If it's too large, it should be on a page of its own, and let the user read it and go back.
Or of course you could redesign the first page so that it needed less explanation.
Every time someone argues for usability guidelines like "don't mess with the user's browser", someone else says "Except in my special case, that's right. But I can ignore that rule because..."
($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
=~y~b-v~a-z~s; print
| [reply] [d/l] |
|
|
If you want to use JavaScript, sure, a small pop-up is one option.
If you don't, target is what you have.
Suppose you have explanatory/reference text a new user may want to see, but which would be mere visual clutter to an experienced user. Definitions of terminolgy, syntax reference, that sort of thing. Opening it in a new window allows the user to switch between the two easily.
I've rarely, if ever, used target="_new" or target="_blank" on a general audience public site. I have used it on specialized internal tools, where it is necessary for the user to compare content the current page to that in the new window.
| [reply] |