December 14, 2007
November 19, 2007 10:26 am HTML
When building web pages, there’s a few unwritten rules you should follow. Some of the deal with linking to other pages.
When you’re linking to pages within your web site, you generally want them to open in the same window. This usually makes it easier for folks to navigate your site. It also means there’s less chance that one of your pages may be blocked by a pop-up blocker!
However, linking to pages on other web sites, it’s a good idea to have the page open in a new window. The main reason for this is that it keeps your site open – so that when a person closes the new window, your site will still be visible (which gives you a better chance of keeping people on your web site).
While some web authoring programs make it easy to configure this setting, others don’t – and there are times you need to know how to manually configure web pages to open in a new window (like when you’re working cialis pro in Blogger).
Here’s how you do it.
After creating your hyperlink, take a look at the HTML code. Here’s an example:
To make this link open in a new page, all I have to do is add target=”blank” to the end of the link. So the new link will look like this:
<a href=”http://www.arizonafishingholes.com/gila-trout.php” target=”blank”>
Notice that there is a space between .php” and target. It’s also important to include the quotes around “blank”.
I mentioned blogger earlier. When you create links in blogger, they are configured to open in the same window by default. This means that when linking to pages on other sites, you’ll have to edit the HTML so your links will open in a new window.
But now you know how to do it!