Welcome to WebmasterWorld Guest from 18.208.159.25

Forum Moderators: open

Message Too Old, No Replies

Open Links in New Windows as default

Open Links in New Windows as default

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

Junior Member

10+ Year Member

joined:Aug 24, 2003
posts:115
votes: 0


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

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

New User

10+ Year Member

joined:May 3, 2006
posts:18
votes: 0


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.

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

Junior Member

10+ Year Member

joined:Sept 19, 2005
posts:44
votes: 0


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.

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

Junior Member

10+ Year Member

joined:July 14, 2006
posts:98
votes: 0


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?
10:55 am on Aug 3, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Oct 14, 2004
posts:319
votes: 0


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.