Sunday

Make Links Open In a New Window



Do you know how to make links open in a new window? It's very simple to do but opening links in new windows also has a little debate behind it. But we'll cover that for a little bit after I show you the html you need to start using so you CAN have your links open up in new windows.

Take a look at the following html for a link.

<a href="Your Url">Your Link Text Here</a>

Now, you need to change the html to make the link above open in a new window. All you have to do is add the following...

target=_blank with a space directly in front of your link text

So the new html for a link to open in a new window is

<a href="url" target=_blank>Link text</a>

I told you is was super easy and simple!

This is probably the first bit of html that I ever learned. I prefer having my links open in new windows because I want my visitors to be able to hop out of my site to follow the link they want and be able to easily hop right back by closing the new window if they like instead of having to use the back button and wait.

When I surf the internet I always have to use right clicks on links everywhere I go because I want the ease of opening and closing windows so I don't have to wait for websites to load back up because I was using the back button all day. What if the website I want is 5 clicks back? Forget that!

But a lot of people say that making links open in new windows takes away the web surfers ability to control their web use. That if they wanted to open the link in a new window they could. Or whatever the heck, but you know what? That's the beauty of building your own web pages. You can do whatever the hell you want with them.

Anyway, now you can make your links open in new windows if you want!

Please leave a comment and tell us all what you think about making links open in new windows!





Share/Save/Bookmark


2 comments:

Cathy said...

Thank you for this! I frequently give credit to other sites for info that I'm sharing... but was tired of sending my readers away! This is the perfect fix!

Monica said...

Love it! I have been wondering how to do this. This will be so good to use. Thanks for sharing!