FAQ: How do I make a link open in a new browser window?

A: Well, first of all, this can be done easily by your visitor if he wishes. All he has to do is right click on the link and choose "Open In New Window".

If we figure that you want to force this action for whatever reason, you can add target="_blank" to the link...

Go to <a href="http://www.cnn.com/" target="_blank">CNN</a>

There's more on targets in Frames Tutor.

One more note about links... It is perfectly acceptable to link to someone's web page(s) without asking. Links are what makes the Web the Web. Again, because this is a very common newbie misconception... if you want to link to another web page... just link to it. You don't have to ask permission, even if you really really feel like asking would just be the polite thing to do... it's just not necessary. Now, that said, it's NOT a good idea to link to someone else's media... such as images, movies or sounds.

Now that you've learned how to make links, I'm going to tell you about one of my pet peeves. I hate searching for information on widgets and all I get are pages with 14 dozen LINKS to widget sites and nothing else. I follow some of those links and I get MORE LINKS to more widget link sites... but never any friggin widgets! :-(

If you're making a web site, of course include links if you think it adds value, but try to refrain from having a site that consists of nothing more than a bunch of links... especially links that link to even more links!

So, you want to make a Web Page!
Lessons: Intro 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
Index & Quick Reference      Table of Contents      ColorPicker      BareBones HTML Guide
Color Charts      Simple Font Widget      Practice Exercises      Where are my images?
Print version of this tutorial available - Get the PageTutor Book & CD

kslokesh - All Copyrights, Trademarks, Logos etc. belong to their respective owners.