Wÿrm said:
ofcourse everyone have own view. But point is that why do you want PREVENT
user having own view if they want or want not open new window, by making
that choice for them?
In simple words.
BEFORE you make choice for user, they have TWO options, open in new window
or not.
Or in a new tab. Or in a new tab in background. Or in a new window in
background. Etc...
I think it would be proper to position the context of all this. Coding
to open a link in the same window is also proposing a preferred scenario
for the user. The real problem happens when the author's proposed
scenario (mode of opening a referenced resource) becomes the only
possible scenario for the visitor: this is where problems and real ones
occur.
But after you in your infinite wisdom think just because YOU feel
like popping up new window, they do not have two options only one. Why do
you want take that option away from user?
It all depends on the way the link was coded. If well coded, then a
proposed scenario will not prevent other ways of loading the referenced
resource. Here's an example of limiting choices for the user (or
imposing a scenario):
<a href="javascript:window.open(strUrl, 'WindowName',
'top=50,left=100');">My garden</a>
Because of the "javascript:" pseudo-protocol, it becomes impossible to
see my garden in the same window: the browser is confused and the
contextmenu right-click will not offer or execute other modes of opening
the reference resource (while another way of coding the link would have
achieved a big difference of usability and accessibility).
Right-clicking on such link in NS 7.0 to see the link properties will
even show that the referenced resource is supposed to open in the same
window when it is not the case. Again, the "javascript:" pseudo-protocol
fools the browser. That is what Nielsen was precisely referring to when
he said:
"(...) When they [users] want the destination to appear in a new page,
they can use their browser's 'open in new window' command -- assuming,
of course, that the link is not a piece of code that interferes with the
browser’s standard behavior."
6. JavaScript in Links
Top Ten Web-Design Mistakes of 2002
http://www.useit.com/alertbox/20021223.html
DU