Don’t open new windows unless…
This once, and to a tiny extent, I disagree with Mark’s accessibility tip. Though for the most part it’s true that you shouldn’t open links in a new window with target=”_blank”, there is one time when you should: if you have opened a popup window with an accessible javascript link, then not opening links in new windows is hellish for accessibility, since otherwise your readers have to predict that you aren’t opening links in a new window, and know how to do it themselves, in order to avoid having something open in that little non-resizable window with no back button. I just had to fix my comments, since somehow they lost their <base target=”_blank” /> and I ended up with a fullsize page stuck into a popup.
Speaking of javascript, popups, and targets: there are those who think this is debatable, but I will SHOUT THEM DOWN: if you open a popup with a form in it (like, say, a comment), do not under any circumstances use anything but “_blank” for the target window name in the window.open javascript command. I can’t count the number of times that I’ve been typing a comment, needed to refer to something in another comment thread, either on that blog or another that used the same comment system (and thus the same window name), and clobbered my partially done comment by having the second comment open over it in the first popup window. If you open popups in “_blank”, then people have to close the popup when they are done with it. No big deal, they have to eventually anyway. If you reuse the same window, then you will have people lose partially done comments, and I know in my case I almost never start over when I lose one. In fact, I don’t see any benefit to the named window at all, given that for me at least, using IE6, if I open a comment in ‘comment’ and then go back to the main page and click another comment link, it just softly and silently opens in the old popup window without getting the focus, so that as far as I can tell, nothing happened when I clicked the link. How helpful is that?
Those are some good points regarding javascript windows. I’d actually fixed this problem of having the href point to a javascript command on my own site a couple days ago and, as mentioned in that link you posted, pointed it instead to the real URL with an onclick pointing to the new window code. As you’ve probably noticed, a lot of the free/hosted comment scripts use a href pointing to a javascript command to open the comments page in a new window. This should be addressed by those sites.
(While fixing this I decided to get really nitpicky on my own site and coverted the comments script I was using to be 100% XHTML compatible) ;-)
Regarding the last point:
”I open a comment in ’comment’ and then go back to the main page and click another comment link, it just softly and silently opens in the old popup window without getting the focus, so that as far as I can tell, nothing happened when I clicked the link. How helpful is that?”
onload=”window.focus();” in the body tag solves that issue.
Ah, but pages demanding the focus are almost more annoying. Combine my slow connection with a slow server (Blogger was great for this), and you can get whiplash as the windows fight over which one will get the focus. Especially for the blind, it’s disconcerting. My next-door neighbor will quite often start a couple of pages loading in new windows, only to have one force its way to the front when it finishes loading and the onload fires. Surprise! you aren’t reading what you thought you were anymore.
pinjo web modelling methodology
interesting uh ??
http://www31.brinkster.com/pinjopaul/pinjo.htm
see information over here
Barn doors swing
Phil Ringnalda makes a good point: there is one time it’s not evil and wicked to use target=”_blank” to force