Forum Moderators: open

Message Too Old, No Replies

Open Links in New Windows as default

Open Links in New Windows as default

         

Vrindavan

10:43 am on Jul 28, 2006 (gmt 0)

10+ Year Member



base target="_blank"

Other than the above code,
any other code that can make all links of a webpage to open in a new window as default?

Thanks

duncan biscuits

2:06 pm on Jul 28, 2006 (gmt 0)

10+ Year Member



Why would you want to force new windows to open? Most web users prefer to have the choice of whether to use a new window or (in Firefox or Opera) a new tab. Taking that choice away from your site visitors will mean a lot of visitors will decide not to use your site.

If you feel you really must make links open in new windows, the best thing you can do is give visitors a clear warning before they click on anything. Then at least people have the choice of whether to continue or hit the Back button instead.

crevier

9:22 pm on Aug 2, 2006 (gmt 0)

10+ Year Member



First, I don't know why people have to ask why. Why does it matter? You can't make assumptions as to the application or the audience. There are many situations where forcing a new window is warranted and many where it is not. An answer to the "why" question doesn't help the poster to figure out how to do it.

OK, 'nuf said on that.

My only pet peeve with sites that have many pop-up links is that a new window is forced every time, instead of opening one window and using that same one.

For example, if you have a page with 20 thumbnails on it, and each is a link to a pop-up page with the full version of the image, it's best to use a link like this:

base target="fullphoto"

This way, the first time you click a thumbnail, the browser will open the new window and name it "fullphoto" (or whatever name you gave it). And each subsequent click will load the full version into that same window. So you don't end up with a bunch of windows that you then need to close. It's a much cleaner implementation than using a "_blank" target.

opifex

9:33 pm on Aug 2, 2006 (gmt 0)

10+ Year Member



base target="_blank" works well and is useful for directories .... a site that people don't want to leave... they are their to find other peoples information ... no a directory is not a link farm if properly constructed..... apart from that it would give people headaches!
if all content is within your own site why not use frames or dhtml?

kiwibrit

10:55 am on Aug 3, 2006 (gmt 0)

10+ Year Member



Getting back to the original question, the answer is no - (unless you use javascript, I guess). target="_blank" won't validate in strict code, of course.